Class LocalizableResourceString
A localizable resource string that may possibly be formatted differently depending on culture.
Inherited Members
Namespace: Loretta.CodeAnalysis
Assembly: Loretta.CodeAnalysis.dll
Syntax
public sealed class LocalizableResourceString : LocalizableString
Constructors
| Improve this Doc View SourceLocalizableResourceString(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. |
System.Resources.ResourceManager | resourceManager | System.Resources.ResourceManager for the calling assembly. |
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. |
System.Resources.ResourceManager | resourceManager | System.Resources.ResourceManager for the calling assembly. |
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
| Improve this Doc View SourceAreEqual(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
| Improve this Doc View SourceGetHash()
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
| Improve this Doc View SourceGetText(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 |