UnitStepAttribute
StockSharp.Messages
Restricción de pasos para valores de unidad (valor = Base + N*Step, N=0).
Hereda de: StepAttribute
Implementa: IValidator
Constructores
UnitStepAttribute
public UnitStepAttribute(Unit step, Unit baseValue)
unitStepAttribute = UnitStepAttribute(step, baseValue)
Inicia una nueva instancia de la UnitStepAttribute.
- step
- StepUnit
- baseValue
- BaseValueUnit
Propiedades
BaseValueUnit
public Unit BaseValueUnit { get; }
value = unitStepAttribute.BaseValueUnit
Valor 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.
Devuelve: True if the value is valid; otherwise, false.