ComparableNullOrMoreZeroAttribute
Ecng.ComponentModel
Indicates that a comparable value must be either null or greater than zero.
継承元: ComparableValidationAttribute<T>
メソッド
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).
戻り値: True if the value is null or the non-null value is greater than zero; otherwise, false.