Class ResourceLoader
Loads resources embedded in the assembly.
Inherited Members
Namespace: Evergine.Common.IO
Assembly: Evergine.Common.dll
Syntax
public static class ResourceLoader
Methods
EmbeddedResourceExists(Assembly, string)
Embeddeds the resource exists.
Declaration
public static bool EmbeddedResourceExists(Assembly targetAssembly, string name)
Parameters
Type | Name | Description |
---|---|---|
Assembly | targetAssembly | The target assembly. |
string | name | The name. |
Returns
Type | Description |
---|---|
bool | returns System.Boolean. |
GetEmbeddedResourceData(Assembly, string)
Gets the embedded resource data.
Declaration
public static byte[] GetEmbeddedResourceData(Assembly targetAssembly, string name)
Parameters
Type | Name | Description |
---|---|---|
Assembly | targetAssembly | The assembly. |
string | name | The name. |
Returns
Type | Description |
---|---|
byte[] | Resource data. |
GetEmbeddedResourceStream(Assembly, string)
Gets the embedded resource stream.
Declaration
public static Stream GetEmbeddedResourceStream(Assembly targetAssembly, string name)
Parameters
Type | Name | Description |
---|---|---|
Assembly | targetAssembly | The assembly. |
string | name | The name. |
Returns
Type | Description |
---|---|
Stream | Resource stream. |
GetEmbeddedTextFile(Assembly, string)
Gets the embedded text file.
Declaration
public static string GetEmbeddedTextFile(Assembly targetAssembly, string name)
Parameters
Type | Name | Description |
---|---|---|
Assembly | targetAssembly | The assembly. |
string | name | The name. |
Returns
Type | Description |
---|---|
string | Resource string. |