SelectBoundary specifies how the lower and upper limits of an OrderedSequence<T> range search are interpreted.
public enum SelectBoundary
{
Open,
Inclusive,
Exclusive
}
SelectBoundary enumerationOrderedSequence<T>.Search() for the low and high ends of a search interval.Open
Inclusive
Exclusive
Inclusive for closed ranges such as [low, high], Exclusive for strict comparisons, and Open when only one side of the range is constrained.Search(10, SelectBoundary.Inclusive, 20, SelectBoundary.Exclusive) selects values in the half-open interval [10, 20). Search(0, SelectBoundary.Open, high, SelectBoundary.Inclusive) selects everything up to and including high.