CurrencyHelper
Ecng.Common
Extension class for Currency.
Métodos
GetPrefix
public static string GetPrefix(CurrencyTypes currency)
result = CurrencyHelper.GetPrefix(currency)
Get the currency symbol.
- currency
- CurrencyTypes
Devuelve: The currency symbol.
IsCrypto
public static bool IsCrypto(CurrencyTypes type)
result = CurrencyHelper.IsCrypto(type)
Determines the specified type is crypto currency.
- type
- Currency type.
Devuelve: Check result.
ToCurrency
public static Currency ToCurrency(decimal value, CurrencyTypes type)
result = CurrencyHelper.ToCurrency(value, type)
Cast Decimal to Currency.
- value
- Currency value.
- type
- Currency type.
Devuelve: Currency.