UnitHelper

StockSharp.Messages

Extension class for Unit.

Methods

Percents(int) : Unit

Convert the Int32 to percents.

value
Int32 value.

Returns: Percents.

Percents(long) : Unit

Convert the Int64 to percents.

value
Int64 value.

Returns: Percents.

Percents(double) : Unit

Convert the Double to percents.

value
Double value.

Returns: Percents.

Percents(decimal) : Unit

Convert the Decimal to percents.

value
Decimal value.

Returns: Percents.

Times(Unit, int) : Unit

Multiple Value on the specified times.

unit
Unit.
times
Multiply value.

Returns: Result.

ToUnit(string, bool) : Unit

Convert string to Unit.

str
String value of Unit.
throwIfNull
Throw ArgumentNullException if the specified string is empty.

Returns: Object Unit.