Table of Contents

Class CurrencyHelper

Namespace
Ecng.Common
Assembly
Ecng.Common.dll

Extension class for Currency.

public static class CurrencyHelper
Inheritance
CurrencyHelper
Inherited Members

Methods

GetPrefix(CurrencyTypes)

Get the currency symbol.

public static string GetPrefix(this CurrencyTypes currency)

Parameters

currency CurrencyTypes

CurrencyTypes

Returns

string

The currency symbol.

IsCrypto(CurrencyTypes)

Determines the specified type is crypto currency.

public static bool IsCrypto(this CurrencyTypes type)

Parameters

type CurrencyTypes

Currency type.

Returns

bool

Check result.

ToCurrency(decimal, CurrencyTypes)

Cast decimal to Currency.

public static Currency ToCurrency(this decimal value, CurrencyTypes type)

Parameters

value decimal

Currency value.

type CurrencyTypes

Currency type.

Returns

Currency

Currency.