Class DefaultResourceManager
Represents a resource manager that provides Null Object behavior for access to culture-specific resources.
Inheritance
Implements
Inherited Members
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public class DefaultResourceManager : ResourceManager, IResourceManager
Methods
GetObjectWithCultureFallback(String, CultureInfo)
Returns the same value as the specified resource name
for all localizations.
Declaration
public object GetObjectWithCultureFallback(string name, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the resource to retrieve. |
System.Globalization.CultureInfo | culture | An object that represents the culture for which the resource is localized. |
Returns
Type | Description |
---|---|
System.Object | Same value as the specified resource |
GetString(String)
Returns the same value as the specified string resource name
.
Declaration
public override string GetString(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the resource to retrieve. |
Returns
Type | Description |
---|---|
System.String | Same value as the specified string resource |
Overrides
GetString(String, CultureInfo)
Returns the same value as the specified string resource name
for all localizations.
Declaration
public override string GetString(string name, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the resource to retrieve. |
System.Globalization.CultureInfo | culture | An object that represents the culture for which the resource is localized. |
Returns
Type | Description |
---|---|
System.String | Same value as the specified string resource |
Overrides
GetStringWithCultureFallback(String, CultureInfo)
Returns the same value as the specified string resource name
for all localizations.
Declaration
public string GetStringWithCultureFallback(string name, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the resource to retrieve. |
System.Globalization.CultureInfo | culture | An object that represents the culture for which the resource is localized. |
Returns
Type | Description |
---|---|
System.String | Same value as the specified string resource |