C-DEngine 5.105

TheCommonUtils..::..GetSystemResource Method

Fetch a resource from an assembly file.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static byte[] GetSystemResource(
	Assembly assem,
	string strResName
)
Public Shared Function GetSystemResource ( _
	assem As Assembly, _
	strResName As String _
) As Byte()
public:
static array<unsigned char^>^ GetSystemResource(
	Assembly^ assem, 
	String^ strResName
)

Parameters

assem
Type: Assembly
A reference to an assembly.
strResName
Type: String
The name of the resource to retrieve.

Return Value

A byte array containing the resource. On error, a null.

Remarks


When null is provided for the assem parameter, the assembly of the currently executing plugin is the search target.