Appearance
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
| Name | Description |
|---|---|
assembly | The assembly that contains the embedded resource. |
filename | The resource file name, relative to the assembly root namespace unless prependAssembly is . |
prependAssembly | If , 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.