Constructor Range
- Namespace
- Bonsai
- Assembly
- Bonsai.Core.dll
Range(TValue, TValue)
Initializes a new instance of the Range<TValue> class with the specified lower and upper bounds.
public Range(TValue lowerBound, TValue upperBound)
Parameters
lowerBound
TValueThe inclusive lower bound of the range.
upperBound
TValueThe inclusive upper bound of the range.
Range(TValue, TValue, IComparer<TValue>)
Initializes a new instance of the Range<TValue> class with the specified lower and upper bounds and using the specified comparer.
public Range(TValue lowerBound, TValue upperBound, IComparer<TValue> comparer)
Parameters
lowerBound
TValueThe inclusive lower bound of the range.
upperBound
TValueThe inclusive upper bound of the range.
comparer
IComparer<TValue>An IComparer<T> to use to compare values.