Returns the value of the specified string resource localized for the specified culture for the specified assembly.
A String that contains the value of the resource localized for the specified culture.
Note The GetString
method is thread-safe.
The following example demonstrates the GetString
method using specific culture and assembly.
CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US"); Assembly assembly = Assembly.GetCallingAssembly(); string localizedString = ResourceUtils.GetString("String_HelloWorld", culture, assembly);
ResourceUtils Class | NAnt.Core.Util Namespace | ResourceUtils.GetString Overload List