Class CultureString
A string which carries culture information.
Inheritance
Object
CultureString
Implements
ICloneable
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.Core
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public class CultureString : ICloneable
Constructors
CultureString()
Initializes a new instance with empty text and the
Sdl.
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 |
---|---|---|
Culture |
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 |
---|---|---|
Culture |
other |
Properties
Culture
Gets or sets the culture.
Declaration
public CultureCode Culture { get; set; }
Property Value
Type | Description |
---|---|
Culture |
CultureName
Gets or sets the culture name. When setting the culture name, it must be resolvable
through Core.
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.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
Object | A new object that is a deep copy of this instance. |
Implements
System.ICloneable