[]
Returns the localized string for the specified culture.
public static string GetString(string resourceAssembly, string resourceDictionary, string resourceKey, string defaultValue, Assembly currentAssembly = null)
Type | Name | Description |
---|---|---|
string | resourceAssembly | The name of executing assembly. |
string | resourceDictionary | The name of resource dictionary. |
string | resourceKey | The resource key. |
string | defaultValue | The default value. |
Assembly | currentAssembly | The current executing assembly. |
Type | Description |
---|---|
string |
Search order: - searching in the specified resource Assembly; - searching in satellite Assemblies of the specified resource Assembly; - searching in the executing assembly; - repeating the search in above assemblies for the parent culture; - if result is not found, returning the specified default value.
Returns the localized string for the specified culture.
public static string GetString(string resourceAssembly, string resourceDictionary, string resourceKey, string defaultValue, CultureInfo culture, Assembly currentAssembly = null)
Type | Name | Description |
---|---|---|
string | resourceAssembly | The name of resource assembly. |
string | resourceDictionary | The name of resource dictionary. |
string | resourceKey | The resource key. |
string | defaultValue | The default value. |
CultureInfo | culture | The CultureInfo info. |
Assembly | currentAssembly | The current executing assembly. |
Type | Description |
---|---|
string |
Search order: - searching in the specified resource Assembly; - searching in satellite Assemblies of the specified resource Assembly; - searching in the executing assembly; - repeating the search in above assemblies for the parent culture; - if result is not found, returning the specified default value.
Returns the localized string for the specified culture.
public static string GetString(string resourceDictionary, string resourceKey, string defaultValue, Assembly currentAssembly = null)
Type | Name | Description |
---|---|---|
string | resourceDictionary | The name of resource dictionary. |
string | resourceKey | The resource key. |
string | defaultValue | The default value. |
Assembly | currentAssembly | The executing assembly. |
Type | Description |
---|---|
string |
Search order: - searching in the executing Assembly; - repeating the search for the parent culture; - if result is not found, returning the specified default value.
Returns the localized string for the specified culture.
public static string GetString(string resourceDictionary, string resourceKey, string defaultValue, CultureInfo culture, Assembly currentAssembly = null)
Type | Name | Description |
---|---|---|
string | resourceDictionary | The name of resource dictionary. |
string | resourceKey | The resource key. |
string | defaultValue | The default value. |
CultureInfo | culture | The CultureInfo object. |
Assembly | currentAssembly | The current executing assembly. |
Type | Description |
---|---|
string |
Search order: - searching in the executing Assembly; - repeating the search for the parent culture; - if result is not found, returning the specified default value.