CurrencyCodeHelper Class
Assembly: PTS.Globalization.dll
Syntax
public static class CurrencyCodeHelper
Inheritance
System.Object
CurrencyCodeHelper
Methods
AmountFromIsoString(CurrencyCode, String)
Declaration
public static decimal AmountFromIsoString(this CurrencyCode country, string value)
Parameters
Type |
Name |
Description |
CurrencyCode |
country |
|
System.String |
value |
|
Returns
Type |
Description |
System.Decimal |
|
AmountToIsoString(CurrencyCode, Decimal)
Declaration
public static string AmountToIsoString(this CurrencyCode country, decimal value)
Parameters
Type |
Name |
Description |
CurrencyCode |
country |
|
System.Decimal |
value |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string FormatIso(this CurrencyCode country, decimal value)
Parameters
Type |
Name |
Description |
CurrencyCode |
country |
|
System.Decimal |
value |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string FormatLocal(this CurrencyCode country, decimal value)
Parameters
Type |
Name |
Description |
CurrencyCode |
country |
|
System.Decimal |
value |
|
Returns
Type |
Description |
System.String |
|
FromIsoCode(Int32, Boolean)
Declaration
public static CurrencyCode FromIsoCode(int isoCode, bool require)
Parameters
Type |
Name |
Description |
System.Int32 |
isoCode |
|
System.Boolean |
require |
|
Returns
FromIsoCode(String, Boolean)
Declaration
public static CurrencyCode FromIsoCode(string isoCode, bool require)
Parameters
Type |
Name |
Description |
System.String |
isoCode |
|
System.Boolean |
require |
|
Returns
ToCountryCode(CurrencyCode)
Declaration
public static CountryCode ToCountryCode(this CurrencyCode currency)
Parameters
Returns
ToIsoCode(CurrencyCode)
Declaration
public static int ToIsoCode(this CurrencyCode code)
Parameters
Returns
Type |
Description |
System.Int32 |
|
ToRegionInfo(CurrencyCode, Boolean)
Declaration
public static RegionInfo ToRegionInfo(this CurrencyCode country, bool require = true)
Parameters
Type |
Name |
Description |
CurrencyCode |
country |
|
System.Boolean |
require |
|
Returns
Type |
Description |
System.Globalization.RegionInfo |
|
ToSymbol(CurrencyCode, Boolean)
Declaration
public static string ToSymbol(this CurrencyCode currency, bool require = true)
Parameters
Type |
Name |
Description |
CurrencyCode |
currency |
|
System.Boolean |
require |
|
Returns
Type |
Description |
System.String |
|
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()