Class LocalizableResourceString
A localizable resource string that may possibly be formatted differently depending on culture.
Inherited Members
Namespace: Loretta.CodeAnalysis
Assembly: cs.temp.dll.dll
Syntax
public sealed class LocalizableResourceString : LocalizableStringConstructors
LocalizableResourceString(String, ResourceManager, Type)
Creates a localizable resource string with no formatting arguments.
Declaration
public LocalizableResourceString(string nameOfLocalizableResource, ResourceManager resourceManager, Type resourceSource)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | nameOfLocalizableResource | nameof the resource that needs to be localized. | 
| ResourceManager | resourceManager | |
| Type | resourceSource | Type handling assembly's resource management. Typically, this is the static class generated for the resources file from which resources are accessed. | 
LocalizableResourceString(String, ResourceManager, Type, String[])
Creates a localizable resource string that may possibly be formatted differently depending on culture.
Declaration
public LocalizableResourceString(string nameOfLocalizableResource, ResourceManager resourceManager, Type resourceSource, params string[] formatArguments)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | nameOfLocalizableResource | nameof the resource that needs to be localized. | 
| ResourceManager | resourceManager | |
| Type | resourceSource | Type handling assembly's resource management. Typically, this is the static class generated for the resources file from which resources are accessed. | 
| System.String[] | formatArguments | Optional arguments for formatting the localizable resource string. | 
Methods
AreEqual(Object)
Provides the implementation of Equals. Equals will provide a default value if this method throws an exception.
Declaration
protected override bool AreEqual(object other)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | other | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
GetHash()
Provides the implementation of GetHashCode. GetHashCode will provide a default value if this method throws an exception.
Declaration
protected override int GetHash()Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
GetText(Nullable<IFormatProvider>)
Gets the text for the localizable string with the provided format provider.
Declaration
protected override string GetText(IFormatProvider? formatProvider)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Nullable<IFormatProvider> | formatProvider | 
Returns
| Type | Description | 
|---|---|
| System.String |