Skip to content

ReadAssemblyFile Method ​

Definition ​

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

byte[] ReadAssemblyFile(Assembly assembly, string filename, bool prependAssembly = null) ​

csharp
byte[] ReadAssemblyFile(Assembly assembly, string filename, bool prependAssembly = null)

Returns the contents of an embedded assembly resource as a byte array.

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 byte array containing the resource content, or if the resource cannot be found.