public static InRange ( this value, double min, double max ) : bool | ||
value | this | The value to check. |
min | double | The lower limit of the range. |
max | double | The upper limit of the range. |
Résultat | bool |
public static bool InRange(this double value, double? min, double? max)
{
if (value < min) return false;
if (value > max) return false;
return true;
}