UnitStepAttribute
StockSharp.Messages
单位值的步数限制(Value = Base + N *Step, N>=0).
继承自: StepAttribute
实现: IValidator
构造函数
UnitStepAttribute
public UnitStepAttribute(Unit step, Unit baseValue)
unitStepAttribute = UnitStepAttribute(step, baseValue)
初始化了 & ##UnitStepAttribute+#的新实例.
- step
- StepUnit
- baseValue
- BaseValueUnit
属性
方法
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.
返回值: True if the value is valid; otherwise, false.