Struct SearchRange<TValue>
Object that specifies range of scalar and DateTime values.
public struct SearchRange<TValue> where TValue : struct, IComparable<TValue>
Type Parameters
TValue
The type of the range value.
- Inherited Members
- Extension Methods
Constructors
SearchRange(TValue?, TValue?, bool, bool)
Initializes a new instance of the SearchRange<TValue> class.
public SearchRange(TValue? min, TValue? max, bool isMinInclusive, bool isMaxInclusive)
Parameters
min
TValue?The lower bound of the range.
max
TValue?The upper bound of the range
isMinInclusive
boolIndicates whether the lower bound of the range is inclusive.
isMaxInclusive
boolIndicates whether the upper bound of the range is inclusive.
Properties
Empty
Empty range.
public static SearchRange<TValue> Empty { get; }
Property Value
- SearchRange<TValue>
IsMaxInclusive
Gets the value that indicates whether the upper bound of the range is inclusive.
public readonly bool IsMaxInclusive { get; }
Property Value
IsMinInclusive
Gets the value that indicates whether the lower bound of the range is inclusive.
public readonly bool IsMinInclusive { get; }
Property Value
Max
Gets the lower bound of the range.
public readonly TValue? Max { get; }
Property Value
- TValue?
Min
Gets the lower bound of the range.
public readonly TValue? Min { get; }
Property Value
- TValue?