Class UiCultureInfo
Represents a language the UI can show: its culture name, and its own name for itself.
public class UiCultureInfo
- Inheritance
-
UiCultureInfo
- Inherited Members
Constructors
UiCultureInfo(CultureInfo)
Represents a language the UI can show: its culture name, and its own name for itself.
public UiCultureInfo(CultureInfo cultureInfo)
Parameters
cultureInfoCultureInfoThe language's culture.
UiCultureInfo(string)
Initializes a new instance of the UiCultureInfo class.
public UiCultureInfo(string code)
Parameters
codestringThe language's culture name, as
fr.
Exceptions
- ArgumentNullException
codeis null.- CultureNotFoundException
codenames no culture.
UiCultureInfo(string, string)
Initializes a new instance of the UiCultureInfo class, as JSON from the other side of the API reads it: with the device's own name for the language, not one the reader's culture data would make.
[JsonConstructor]
public UiCultureInfo(string code, string nativeName)
Parameters
Exceptions
- ArgumentNullException
codeis null.- CultureNotFoundException
codenames no culture.
Properties
Code
Gets the language's culture name, as fr.
public string Code { get; }
Property Value
NativeName
Gets the language's name for itself, as français.
public string NativeName { get; }