LanguageCodeProvider Class
Namespace: PTS.Globalization
Assembly: PTS.Globalization.dll
Syntax
[InitializeOnStart]
public class LanguageCodeProvider
Inheritance
System.Object
LanguageCodeProvider
Constructors
LanguageCodeProvider()
Declaration
public LanguageCodeProvider()
Fields
Static
Declaration
public static readonly LanguageCodeProvider Static
Field Value
Type | Description |
---|---|
LanguageCodeProvider |
Methods
IsoCodeToLanguage(String, Boolean)
Declaration
public LanguageCode IsoCodeToLanguage(string isoCode, bool require = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | isoCode | |
System.Boolean | require |
Returns
Type | Description |
---|---|
LanguageCode |
LanguageToIsoCode(LanguageCode, Boolean)
Gets the ISO 639-1 two-letter code for the language
Declaration
public string LanguageToIsoCode(LanguageCode code, bool require = true)
Parameters
Type | Name | Description |
---|---|---|
LanguageCode | code | |
System.Boolean | require |
Returns
Type | Description |
---|---|
System.String | The ISO 639-1 two-letter code for the language |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()