Adf.Core.Extensions.DoubleExtensions.InRange C# (CSharp) Méthode

InRange() public static méthode

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.
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;
        }
DoubleExtensions