Method ValueInRange
ValueInRange(object?, object?, object?)
Checks whether value
is in range specified with
minValue
and maxValue
parameters.
public static ValueInRangeResult ValueInRange(object? value, object? minValue, object? maxValue)
Parameters
value
objectValue to check.
minValue
objectMinimal possible value.
maxValue
objectMaximal possible value.
Returns
- ValueInRangeResult
true
ifvalue
is in range;false
otherwise.
Remarks
If range parameter is null
it is not checked. If value
is null,
null
is returned.