Struct LocaleIdentifier
  
The identifier containing the identification information for a language or regional variant.
 
Syntax
[Serializable]
public struct LocaleIdentifier
 
Constructors
  
LocaleIdentifier(CultureInfo)
Declaration
public LocaleIdentifier(CultureInfo culture)
 
Parameters
| Type | 
Name | 
Description | 
| System.Globalization.CultureInfo | 
culture | 
 | 
LocaleIdentifier(String)
Declaration
public LocaleIdentifier(string code)
 
Parameters
| Type | 
Name | 
Description | 
| System.String | 
code | 
 | 
LocaleIdentifier(SystemLanguage)
Declaration
public LocaleIdentifier(SystemLanguage systemLanguage)
 
Parameters
| Type | 
Name | 
Description | 
| SystemLanguage | 
systemLanguage | 
 | 
Properties
  
Code
The culture name in the format [language]-[region].
 
Declaration
public string Code { get; }
 
Property Value
| Type | 
Description | 
| System.String | 
 | 
CultureInfo
Declaration
public CultureInfo CultureInfo { get; }
 
Property Value
| Type | 
Description | 
| System.Globalization.CultureInfo | 
 | 
Undefined
Represents an undefined Local Identifier. One that does not define any language or region.
 
Declaration
public static LocaleIdentifier Undefined { get; }
 
Property Value
Methods
  
Equals(Object)
Declaration
public override bool Equals(object obj)
 
Parameters
| Type | 
Name | 
Description | 
| System.Object | 
obj | 
 | 
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Overrides
System.ValueType.Equals(System.Object)
Equals(LocaleIdentifier)
Declaration
public bool Equals(LocaleIdentifier other)
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
GetHashCode()
Declaration
public override int GetHashCode()
 
Returns
| Type | 
Description | 
| System.Int32 | 
 | 
Overrides
System.ValueType.GetHashCode()
ToString()
Declaration
public override string ToString()
 
Returns
| Type | 
Description | 
| System.String | 
 | 
Overrides
System.ValueType.ToString()
Operators
  
Equality(LocaleIdentifier, LocaleIdentifier)
Declaration
public static bool operator ==(LocaleIdentifier l1, LocaleIdentifier l2)
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 | 
Implicit(CultureInfo to LocaleIdentifier)
Declaration
public static implicit operator LocaleIdentifier(CultureInfo culture)
 
Parameters
| Type | 
Name | 
Description | 
| System.Globalization.CultureInfo | 
culture | 
 | 
Returns
Implicit(String to LocaleIdentifier)
Declaration
public static implicit operator LocaleIdentifier(string code)
 
Parameters
| Type | 
Name | 
Description | 
| System.String | 
code | 
 | 
Returns
Implicit(SystemLanguage to LocaleIdentifier)
Declaration
public static implicit operator LocaleIdentifier(SystemLanguage systemLanguage)
 
Parameters
| Type | 
Name | 
Description | 
| SystemLanguage | 
systemLanguage | 
 | 
Returns
Inequality(LocaleIdentifier, LocaleIdentifier)
Declaration
public static bool operator !=(LocaleIdentifier l1, LocaleIdentifier l2)
 
Parameters
Returns
| Type | 
Description | 
| System.Boolean | 
 |