Click or drag to resize

UnitHelper2Convert Method

Перевести величину в другой тип измерения.

Namespace:  StockSharp.BusinessEntities
Assembly:  StockSharp.BusinessEntities (in StockSharp.BusinessEntities.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public static Unit Convert(
	this Unit unit,
	UnitTypes destinationType,
	Security security
)

Parameters

unit
Type: StockSharp.MessagesUnit
Исходная величина.
destinationType
Type: StockSharp.MessagesUnitTypes
Тип измерения, в который необходимо перевести.
security
Type: StockSharp.BusinessEntitiesSecurity
Информация по инструменту. Необходима при использовании Point и Step.

Return Value

Type: Unit
Сконвертированная величина.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Unit. 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