Method GetResourceFromNameAsText
GetResourceFromNameAsText(string, bool)
Gets contents of resource with a given name as text.
Declaration
public string GetResourceFromNameAsText(string resourceName, bool asUtf8 = false)
Parameters
Type | Name | Description |
---|---|---|
string | resourceName | |
bool | asUtf8 | If true, the method treats the contents of the resource as if it's encoded in UTF-8. Otherwise, it treats the content as it's encoded in the current user's system's active code page. |
Returns
Type | Description |
---|---|
string | The content of the resource as string. |