Click or drag to resize

CurrencyHelperToCurrency Method

Cast Decimal to Currency.

Namespace:  StockSharp.Messages
Assembly:  StockSharp.Messages (in StockSharp.Messages.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static Currency ToCurrency(
	this decimal value,
	CurrencyTypes type
)

Parameters

value
Type: SystemDecimal
Currency value.
type
Type: StockSharp.MessagesCurrencyTypes
Currency type.

Return Value

Type: Currency
Currency.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Decimal. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also