Constructor LocaleIdentifier
LocaleIdentifier(string)
Create a LocaleIdentifier from a culture code string.
Declaration
public LocaleIdentifier(string code)
Parameters
Type | Name | Description |
---|---|---|
string | code |
LocaleIdentifier(CultureInfo)
Create a LocaleIdentifier from a CultureInfo instance.
Declaration
public LocaleIdentifier(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
CultureInfo | culture |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if the culture is null. |
LocaleIdentifier(SystemLanguage)
Create a LocaleIdentifier from a SystemLanguage enum value.
Declaration
public LocaleIdentifier(SystemLanguage systemLanguage)
Parameters
Type | Name | Description |
---|---|---|
SystemLanguage | systemLanguage |