Click or drag to resize

UnitHelper2ToUnit2 Method

Convert string to Unit.

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


Type: SystemString
String value of Unit.
security (Optional)
Type: StockSharp.BusinessEntitiesSecurity
Information about the instrument. Required when using Point и Step.

Return Value

Type: Unit
Object 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