Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 2.83 KB

M_EgonsoftHU_Extensions_Bcl_NumberExtensions_IsInRange_2.md

File metadata and controls

54 lines (38 loc) · 2.83 KB

IsInRange(Double, Double, Double, IntervalBoundsOptions) Method

Indicates whether the specified Double value is in the specified interval.

Definition

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

Parameters

  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.

Return Value

Boolean
true, if value is in the specified interval; otherwise, false.

Usage Note

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).

See Also

Reference

NumberExtensions Class
IsInRange Overload
EgonsoftHU.Extensions.Bcl Namespace