| LocalizableString Class |
Namespace: Sdl.Core.Globalization
The LocalizableString type exposes the following members.
| Name | Description | |
|---|---|---|
| LocalizableString |
Create from a literal string or resource identifier.
|
| Name | Description | |
|---|---|---|
| Content |
Returns the localized text this string represents.
| |
| IsResource | true if the localizable text is retrieved from an assembly.
| |
| RawContent |
Returns the string or resource ID this localizable string uses to get the localized text.
|
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString |
Returns the localized text this string represents.
(Overrides ObjectToString.) |
If this object is constructed from a plain text string it works like a normal System.String.
To reference a resource ID, create this object from a resource identifier string, in the following format: resource://[AssemblyPath\AssemblyName]/[resource ID], where [AssemblyPath\AssemblyName] is the name of the base assembly (with optional path) that the string resource is located in and [resource ID] is the ID of the string resource from which the localized string should be loaded.
The ResourceManager is used to load the string from the assembly, so a localized version of the string (depending on the current thread locale) should be returned if available.