Show / Hide Table of Contents

Method LoadTextFromResources

| Edit this page View Source

LoadTextFromResources(string, Assembly)

Load an assembly-embedded file as a string. Use this if the automatic detection of the assembly fails.
Declaration
public static string LoadTextFromResources(string fileName, Assembly resourceAssembly)
Parameters
Type Name Description
string fileName Name of the file. Folders are point-seperated e.g. folder/file.json becomes folder.file.json
Assembly resourceAssembly Executing assembly
Returns
Type Description
string
| Edit this page View Source

LoadTextFromResources(string)

Load an assembly-embedded file as a string. The calling assembly is automatically detected.
Declaration
public static string LoadTextFromResources(string fileName)
Parameters
Type Name Description
string fileName Name of the file. Folders are point-seperated e.g. folder/file.json becomes folder.file.json
Returns
Type Description
string
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾