Click or drag to resize

UnitHelper2ToUnit2 Method

Преобразовать строку в Unit.

Namespace:  StockSharp.BusinessEntities
Assembly:  StockSharp.BusinessEntities (in StockSharp.BusinessEntities.dll) Version: (4.4.17)
public static Unit ToUnit2(
	this string str,
	bool throwIfNull = true,
	Security security = null


Type: SystemString
Строковое представление Unit.
throwIfNull (Optional)
Type: SystemBoolean
Выбрасывать ошибку ArgumentNullException если указанная строка пустая.
security (Optional)
Type: StockSharp.BusinessEntitiesSecurity
Информация по инструменту. Необходима при использовании Point и Step.

Return Value

Type: Unit
Объект Unit.

Usage Note

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