Click or drag to resize
LanguagePair Class
A LanguagePair represents a combination of a source language and a target language. Languages are specified using their culture or the culture which usually maps to CultureInfo.Name. However, since the XmlSerializer cannot serialize CultureInfo objects, the culture can also be specified using the name.
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.CoreLanguagePair

Namespace: Sdl.LanguagePlatform.Core
Assembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntax
public class LanguagePair : IComparable<LanguagePair>

The LanguagePair type exposes the following members.

Constructors
  NameDescription
Public methodLanguagePair
Instantiates a new object and initializes both languages to the invariant culture.
Public methodLanguagePair(CultureInfo, CultureInfo)
Instantiates a new object and initializes it with the provided language direction.
Public methodLanguagePair(String, String)
Instantiates a new object and initializes it with the provided language direction.
Top
Properties
  NameDescription
Public propertySourceCulture
Gets or sets the source culture
Public propertySourceCultureName
Gets or sets the source language in form of a culture code.
Public propertyTargetCulture
Gets or sets the target culture
Public propertyTargetCultureName
Gets or sets the target language in form of a culture code.
Top
Methods
  NameDescription
Public methodCompareTo
Compares the language directions, which is achieved by lexically comparing the source and target culture names.
Public methodEquals
Equals(object)
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsCompatible
Checks whether a language pair is compatible to another language pair, which is the case if the source and target cultures of both language pairs are non-null and are pairwise compatible with each other (AreCompatible(CultureInfo, CultureInfo)).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReverse
Creates a new language pair object with the reversed language direction.
Public methodToString (Overrides ObjectToString.)
Public methodStatic memberTryParse
Attempts to parse a language pair represented by a string, as produced by ToString.
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments