GlobalizationStringExtensions Class
Namespace: PTS
Assembly: PTS.Globalization.dll
Syntax
public static class GlobalizationStringExtensions
Inheritance
System.Object
GlobalizationStringExtensions
Methods
ToCountryCode(String, Boolean)
Declaration
public static CountryCode ToCountryCode(this string isoCode, bool require = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | isoCode | |
System.Boolean | require |
Returns
Type | Description |
---|---|
CountryCode |
ToCurrencyCode(String, Boolean)
Declaration
public static CurrencyCode ToCurrencyCode(this string isoCode, bool require = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | isoCode | |
System.Boolean | require |
Returns
Type | Description |
---|---|
CurrencyCode |
ToLanguageCode(String, Boolean)
Declaration
public static LanguageCode ToLanguageCode(this string isoCode, bool require = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | isoCode | |
System.Boolean | require |
Returns
Type | Description |
---|---|
LanguageCode |
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()