CultureInfoHelper Class
Namespace: PTS.Globalization
Assembly: PTS.Globalization.dll
Syntax
public static class CultureInfoHelper
Inheritance
System.Object
CultureInfoHelper
Methods
ToCurrencyCode(CultureInfo)
Declaration
public static CurrencyCode ToCurrencyCode(this CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture |
Returns
Type | Description |
---|---|
CurrencyCode |
ToLanguageCode(CultureInfo, Boolean)
Declaration
public static LanguageCode ToLanguageCode(this CultureInfo culture, bool require = true)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | |
System.Boolean | require |
Returns
Type | Description |
---|---|
LanguageCode |
ToRegionInfo(CultureInfo, Boolean)
Declaration
public static RegionInfo ToRegionInfo(this CultureInfo culture, bool require = true)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | |
System.Boolean | require |
Returns
Type | Description |
---|---|
System.Globalization.RegionInfo |
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()