Class CultureString
A string which carries culture information.
Implements
Inherited Members
Namespace: SdlSdl.LanguagePlatformCore
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class CultureString : ICloneable
Constructors
CultureString()
Initializes a new instance with empty text and the InvariantCulture.
Declaration
public CultureString()
CultureString(CultureCode, string)
Initializes a new instance with the specified values.
Declaration
public CultureString(CultureCode culture, string text)
Parameters
Type | Name | Description |
---|---|---|
CultureCode | culture | The culture to assign to the text |
string | text | The text |
CultureString(CultureString)
Initializes a new instance with the values of another instance,
creating a duplicate of other
.
Declaration
public CultureString(CultureString other)
Parameters
Type | Name | Description |
---|---|---|
CultureString | other |
Properties
Culture
Gets or sets the culture.
Declaration
public CultureCode Culture { get; set; }
Property Value
Type | Description |
---|---|
CultureCode |
CultureName
Gets or sets the culture name. When setting the culture name, it must be resolvable through Core.CultureInfoExtensions.GetCultureInfo(string), or be the null or empty string, in which the InvariantCulture will be assigned.
Declaration
public string CultureName { get; set; }
Property Value
Type | Description |
---|---|
string |
Text
Gets or sets the text.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Clone()
ICloneable.Clone()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
object | A new object that is a deep copy of this instance. |