Adf.Core.Extensions.DoubleExtensions.InRange C# (CSharp) Method

InRange() public static method

Returns a value indicating whether the specified value belongs to a specified range.
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.
return bool
        public static bool InRange(this double value, double? min, double? max)
        {
            if (value < min) return false;
            if (value > max) return false;

            return true;
        }
DoubleExtensions