Table of Contents

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 ResourceManager

The ResourceManager that contains the specified resources.

resource Enum

An enumerated value that specifies the type of the resources for which you want to get the string representations.

i int

The 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 ResourceManager

The ResourceManager that contains the specified resources.

resource Enum

An 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 ResourceManager

The ResourceManager that contains the specified resources.

id Enum

The 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 ResourceManager

The ResourceManager that contains the specified resources.

id Enum

The integer identifier for the specified resource.

offset int

The offset for retrieving the value.

length int

The length of the value to retrieve.

Returns

object

The value of the specified resource for the current system culture.