Click or drag to resize

isWithiniswithinPartialExclusiveT Method (T, T, T, IComparerT)

Get whether an element is between two boundaries or equal to the first.

Namespace:  NumberStone
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static bool iswithinPartialExclusive<T>(
	this T x,
	T border1,
	T border2,
	IComparer<T> comp = null
)

Parameters

x
Type: T
The element to check
border1
Type: T
The first boundary. Inclusive.
border2
Type: T
The second boundary. Exclusive.
comp (Optional)
Type: System.Collections.GenericIComparerT
The IComparerT to check for equality and inequality

Type Parameters

T

Return Value

Type: Boolean
Whether x is between border1 an border2 or equal to border1.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).
Remarks

If border1 is equal to border2, nothing will be between them.

border1 need not be smaller than border2.

See Also