UnitStepAttribute
StockSharp.Messages
Restrição de passo para valores unitários (Valor = Base + N*Passo, N>=0).
Herda de: StepAttribute
Implementa: IValidator
Construtores
UnitStepAttribute
public UnitStepAttribute(Unit step, Unit baseValue)
unitStepAttribute = UnitStepAttribute(step, baseValue)
Inicializa uma nova instância do UnitStepAttribute.
- step
- StepUnit
- baseValue
- BaseValueUnit
Propriedades
BaseValueUnit
public Unit BaseValueUnit { get; }
value = unitStepAttribute.BaseValueUnit
Valor de base.
Métodos
IsValid
public override bool IsValid(object value)
result = unitStepAttribute.IsValid(value)
Validates the specified value by converting it and applying the custom validation.
- value
- The value to validate.
Retorna: True if the value is valid; otherwise, false.