RegionInfoHelper Class
Namespace: PTS.Globalization
Assembly: PTS.Globalization.dll
Syntax
public static class RegionInfoHelper
Inheritance
System.Object
RegionInfoHelper
Methods
ToCountryCode(RegionInfo)
Gets CountryCode for given region instance.
Declaration
public static CountryCode ToCountryCode(this RegionInfo region)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.RegionInfo | region | The region to get the CountryCode for. |
Returns
Type | Description |
---|---|
CountryCode | CountryCode if found; otherwise, |
ToCurrencyCode(RegionInfo, Boolean)
Declaration
public static CurrencyCode ToCurrencyCode(this RegionInfo region, bool require = true)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.RegionInfo | region | |
System.Boolean | require |
Returns
Type | Description |
---|---|
CurrencyCode |
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()