UnitNullOrMoreZeroAttribute
StockSharp.Messages
Validates that a Unit value is null or greater than zero.
Inherits: ValidationAttribute
Methods
IsValid
public override bool IsValid(object value)
result = unitNullOrMoreZeroAttribute.IsValid(value)
Validates the specified value by converting it and applying the custom validation.
- value
- The value to validate.
Returns: True if the value is valid; otherwise, false.