UnitNullOrNotNegativeAttribute

StockSharp.Messages

Valida que um valor unitário é nulo ou não negativo (zero ou maior).

Herda de: ValidationAttribute

Métodos

IsValid
public override bool IsValid(object value)
result = unitNullOrNotNegativeAttribute.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.