ComparableNullOrMoreZeroAttribute

Ecng.ComponentModel

Indicates that a comparable value must be either null or greater than zero.

Hereda de: ComparableValidationAttribute<T>

Métodos

Validate
protected override bool Validate(T? value, bool disableNullCheck)
result = comparableNullOrMoreZeroAttribute.Validate(value, disableNullCheck)

Validates that the value is null or greater than zero.

value
The nullable value to validate.
disableNullCheck
A flag indicating whether null check should be disabled (not used in this case).

Devuelve: True if the value is null or the non-null value is greater than zero; otherwise, false.