Skip to content

ReadAssemblyTextFile Method ​

Definition ​

  • Namespace: JASE.IO
  • Assembly: JASE.dll

string ReadAssemblyTextFile(Assembly assembly, string filename, bool prependAssembly = null) ​

csharp
string ReadAssemblyTextFile(Assembly assembly, string filename, bool prependAssembly = null)

Returns the contents of an embedded assembly resource as a string.

Parameters ​

NameDescription
assemblyThe assembly that contains the embedded resource.
filenameThe resource file name, relative to the assembly root namespace unless prependAssembly is .
prependAssemblyIf , the assembly root namespace is prepended to the resource path when resolving the manifest resource name.

Returns ​

A string containing the resource text, or if the resource cannot be found.