Indicates whether the specified Double value is in the specified interval.
Namespace: EgonsoftHU.Extensions.Bcl
Assembly: EgonsoftHU.Extensions.Bcl (in EgonsoftHU.Extensions.Bcl.dll) Version: 3.0.1+8c729d04d0fcab10705485e5626d4fdebeaa818d
C#
public static bool IsInRange(
this double value,
double lowerBound,
double upperBound,
IntervalBoundsOptions options = 0
)
VB
<ExtensionAttribute>
Public Shared Function IsInRange (
value As Double,
lowerBound As Double,
upperBound As Double,
Optional options As IntervalBoundsOptions = 0
) As Boolean
- Double
- The value to compare against the lower bound and the upper bound.
- Double
- The beginning of the interval.
- Double
- The end of the interval.
- IntervalBoundsOptions (Optional)
- Specifies whether to treat the lower and upper bounds as inclusive or exclusive. By default, both are treated as inclusive.
Boolean
true, if value is in the specified interval; otherwise, false.
In Visual Basic and C#, you can call this method as an instance method on any object of type Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
NumberExtensions Class
IsInRange Overload
EgonsoftHU.Extensions.Bcl Namespace