UnitHelper
StockSharp.Messages
Classe de extensão para Unidade.
Métodos
Percents
public static Unit Percents(int value)
result = UnitHelper.Percents(value)
Converta o Int32 em por cento.
- value
- Valor int32.
Retorna: Percentagens.
Percents
public static Unit Percents(long value)
result = UnitHelper.Percents(value)
Converta o Int64 para por cento.
- value
- Valor int64.
Retorna: Percentagens.
Percents
public static Unit Percents(double value)
result = UnitHelper.Percents(value)
Converta o dobro em por cento.
- value
- Valor duplo.
Retorna: Percentagens.
Percents
public static Unit Percents(decimal value)
result = UnitHelper.Percents(value)
Converta a Decimal em porcento.
- value
- Valor decimal.
Retorna: Percentagens.
Times
public static Unit Times(Unit unit, int times)
result = UnitHelper.Times(unit, times)
Valor Múltiplo nas vezes especificadas.
- unit
- Unidade.
- times
- Valor multiplicado.
Retorna: Resultado.
ToUnit
public static Unit ToUnit(string str, bool throwIfNull)
result = UnitHelper.ToUnit(str, throwIfNull)
Converter texto para Unidade.
- str
- Valor da string da Unidade.
- throwIfNull
- Lançar ArgumentNullException se a string especificada estiver vazia.
Retorna: Unidade de Objetos.