UnitNotNegativeAttribute
StockSharp.Messages
验证单位值不是负值(0或更值)。
继承自: ValidationAttribute
方法
IsValid
public override bool IsValid(object value)
result = unitNotNegativeAttribute.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.