ResourceUtils.

GetString(string) Method

Summary

Returns the value of the specified string resource.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Util
Containing Type
ResourceUtils

Syntax

[MethodImpl(MethodImplOptions.NoInlining)]
public static string GetString(string name)

Examples

The following example demonstrates the GetString method using the cultural settings of the current System.Threading.Thread.
string localizedString = ResourceUtils.GetString("String_HelloWorld");

Remarks

The returned resource is localized for the cultural settings of the current System.Threading.Thread.
The GetString method is thread-safe.

Attributes

Type Description
MethodImplAttribute

Parameters

Name Type Description
name string A string that contains the name of the resource to get.

Return Value

Type Description
string A string that contains the value of the resource localized for the current culture.