CurrencyHelper
Ecng.Common
Extension class for Currency.
Methods
GetPrefix
public static string GetPrefix(CurrencyTypes currency)
result = CurrencyHelper.GetPrefix(currency)
Get the currency symbol.
- currency
- CurrencyTypes
Returns: The currency symbol.
IsCrypto
public static bool IsCrypto(CurrencyTypes type)
result = CurrencyHelper.IsCrypto(type)
Determines the specified type is crypto currency.
- type
- Currency type.
Returns: 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.
Returns: Currency.