Method | Description | |
---|---|---|
GetBinaryResource ( string resourceFileName, |
Return the content of a file embed as a resource. The function takes care of finding the fully qualify name, in the current assembly.
|
|
GetBitmapResource ( string resourceFileName, |
Return a image embed as a resource. The function takes care of finding the fully qualify name, in the current assembly.
|
|
GetTextResource ( System regex, |
Return multiple text files embed as a resource in a dictionary. The key in the resource name, the value is the text data The function takes care of finding the fully qualify name, in the passed assembly.
|
|
GetTextResource ( string resourceFileName, |
Return the content of a text file embed as a resource. The function takes care of finding the fully qualify name, in the current assembly.
|
|
GetTextResource ( string resourceFileName, List |
Return the content of a text file embed as a resource. The function takes care of finding the fully qualify name, in the first assembly when the resource is found
|
|
SaveBinaryResourceAsFile ( |
Save a resource as a local file
|
|
SaveBinaryResourceAsFiles ( |
Save resources as a local files
|
Method | Description | |
---|---|---|
ByteArrayToBitMap ( byte b ) : |
Convert a byte array into a bitmap
|
|
GetResourceFullName ( string resourceFileName, |
Return the fully qualified name of the resource file
|
|
SaveByteArrayToFile ( byte byteArray, string fileName ) : bool |
Save a buffer of byte into a file
|
public static GetBinaryResource ( string resourceFileName, |
||
resourceFileName | string | |
assembly | ||
return | byte[] |
public static GetBitmapResource ( string resourceFileName, |
||
resourceFileName | string | |
assembly | ||
return |
public static GetTextResource ( System regex, |
||
regex | System | The regular expression to filter the resource by name. The file system '\' are replaced with '.' |
assembly | ||
gzip | bool | |
encoding | TextResourceEncoding | |
return | string>.Dictionary |
public static GetTextResource ( string resourceFileName, |
||
resourceFileName | string | The file name of the resource |
assembly | ||
gzip | bool | |
encoding | TextResourceEncoding | |
return | string |
public static GetTextResource ( string resourceFileName, List |
||
resourceFileName | string | The file name of the resource |
assemblies | List |
A list of assemblies in which to search for the resources |
return | string |
public static SaveBinaryResourceAsFile ( |
||
assembly | Assembly where to get the resource | |
path | string | Local folder |
resourceFileName | string | Resource name and filename |
return | string |
public static SaveBinaryResourceAsFiles ( |
||
assembly | Assembly where to get the resource | |
path | string | Local folder |
return | string>.Dictionary |