Class GlobalResource
Inheritance
System.Object
GlobalResource
Namespace: Mediachase.BusinessFoundation.Data.Business
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 14.26.0Syntax
public static class GlobalResource : Object
Methods
GetString(String)
Gets the resource string.
Declaration
public static string GetString(string template)
Parameters
Type | Name | Description |
---|---|---|
System.String | template | The template. |
Returns
Type | Description |
---|---|
System.String | The string from global resources if template is "{classKey:resourceKey}", otherwise template. |
GetString(String, CultureInfo)
Gets the resource string.
Declaration
public static string GetString(string template, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.String | template | The template. |
System.Globalization.CultureInfo | culture | The culture. |
Returns
Type | Description |
---|---|
System.String | The string from global resources if template is "{classKey:resourceKey}", otherwise template. |