CurrencyHelper

Ecng.Common

Extension class for Currency.

メソッド

GetPrefix
public static string GetPrefix(CurrencyTypes currency)
result = CurrencyHelper.GetPrefix(currency)

Get the currency symbol.

currency
CurrencyTypes

戻り値: The currency symbol.

IsCrypto
public static bool IsCrypto(CurrencyTypes type)
result = CurrencyHelper.IsCrypto(type)

Determines the specified type is crypto currency.

type
Currency type.

戻り値: 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.

戻り値: Currency.