Struct SearchRange<TValue>
Object that specifies range of scalar and DateTime values.
public struct SearchRange<TValue> where TValue : struct, IComparable<TValue>
Type Parameters
TValueThe 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
minTValue?The lower bound of the range.
maxTValue?The upper bound of the range
isMinInclusiveboolIndicates whether the lower bound of the range is inclusive.
isMaxInclusiveboolIndicates 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?