Search Results for

    Show / Hide Table of Contents

    Class CultureString

    A string which carries culture information.

    Inheritance
    System.Object
    CultureString
    Implements
    System.ICloneable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.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 System.Globalization.CultureInfo.InvariantCulture.

    Declaration
    public CultureString()

    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

    CultureString(CultureInfo, String)

    Initializes a new instance with the specified values.

    Declaration
    public CultureString(CultureInfo culture, string text)
    Parameters
    Type Name Description
    System.Globalization.CultureInfo culture

    The culture to assign to the text

    System.String text

    The text

    Properties

    Culture

    Gets or sets the culture.

    Declaration
    public CultureInfo Culture { get; set; }
    Property Value
    Type Description
    System.Globalization.CultureInfo

    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
    System.String

    Text

    Gets or sets the text.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    Clone()

    ICloneable.Clone()
    Declaration
    public object Clone()
    Returns
    Type Description
    System.Object

    A new object that is a deep copy of this instance.

    Implements

    System.ICloneable

    On this page

    • Constructors
      • CultureString()
      • CultureString(CultureString)
      • CultureString(CultureInfo, String)
    • Properties
      • Culture
      • CultureName
      • Text
    • Methods
      • Clone()
    • Implements
    Back to top Generated by DocFX