Class LegacyLanguage
Represents a language within a legacy translation memory. Provides a way to keep track of the original language code
and name, as well as the associated
Inheritance
System.Object
LegacyLanguage
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi.Upgrade
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class LegacyLanguage
Constructors
LegacyLanguage()
Initializes a new instance with default values.
Declaration
public LegacyLanguage()
LegacyLanguage(CultureInfo)
Constructor with culture.
Declaration
public LegacyLanguage(CultureInfo ci)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | ci |
Properties
Culture
Gets or sets the
Declaration
public CultureInfo Culture { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo |
NativeCode
Gets or sets the native language code, as used by the legacy translation memory.
Declaration
public string NativeCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NativeName
Gets or sets the native language name, as used by the legacy translation memory.
Declaration
public string NativeName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(Object)
System.Object.Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
System.Object.GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this object |
Overrides
System.Object.GetHashCode()