Class ResourceUtility
- Namespace
- nanoFramework.Runtime.Native
- Assembly
- nanoFramework.ResourceManager.dll
Helper class to access nanoFramework application managed resources.
public static class ResourceUtility
- Inheritance
-
ResourceUtility
- Inherited Members
Methods
GetDelimitedStringResource(ResourceManager, Enum, int)
Retrieves the string representation of a specified resource.
public static string GetDelimitedStringResource(ResourceManager rm, Enum resource, int i)
Parameters
rm
ResourceManagerThe ResourceManager that contains the specified resources.
resource
EnumAn enumerated value that specifies the type of the resources for which you want to get the string representations.
i
intThe index number of the resource (in the resource manager's resource collection) for which you want to get the string representation.
Returns
- string
The string representations of the specified resource.
GetDelimitedStringResources(ResourceManager, Enum)
Retrieves the string representations of the specified resources.
public static string[] GetDelimitedStringResources(ResourceManager rm, Enum resource)
Parameters
rm
ResourceManagerThe ResourceManager that contains the specified resources.
resource
EnumAn enumerated value that specifies the type of the resources for which you want to get the string representations.
Returns
- string[]
The string representations of the specified resources.
GetObject(ResourceManager, Enum)
Gets the value of a specified object resource for the current system culture.
public static object GetObject(ResourceManager rm, Enum id)
Parameters
rm
ResourceManagerThe ResourceManager that contains the specified resources.
id
EnumThe integer identifier for the specified resource.
Returns
- object
The value of the specified resource for the current system culture.
GetObject(ResourceManager, Enum, int, int)
Gets the value of a specified object resource for the current system culture.
public static object GetObject(ResourceManager rm, Enum id, int offset, int length)
Parameters
rm
ResourceManagerThe ResourceManager that contains the specified resources.
id
EnumThe integer identifier for the specified resource.
offset
intThe offset for retrieving the value.
length
intThe length of the value to retrieve.
Returns
- object
The value of the specified resource for the current system culture.