Class LanguagePair
Inheritance
System.Object
LanguagePair
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
public class LanguagePair : IComparable<LanguagePair>
Constructors
Declaration
Declaration
public LanguagePair(CultureInfo srcCulture, CultureInfo trgCulture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
srcCulture |
|
System.Globalization.CultureInfo |
trgCulture |
|
Declaration
public LanguagePair(string srcCultureName, string trgCultureName)
Parameters
Type |
Name |
Description |
System.String |
srcCultureName |
|
System.String |
trgCultureName |
|
Properties
Declaration
public CultureInfo SourceCulture { get; set; }
Property Value
Type |
Description |
System.Globalization.CultureInfo |
|
Declaration
public string SourceCultureName { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public CultureInfo TargetCulture { get; set; }
Property Value
Type |
Description |
System.Globalization.CultureInfo |
|
Declaration
public string TargetCultureName { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
public int CompareTo(LanguagePair other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public bool IsCompatible(LanguagePair other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public LanguagePair Reverse()
Returns
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Declaration
public static bool TryParse(string s, out LanguagePair lp)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IComparable<T>