Class Range<T>
Represents a range between a minimum and a maximum value.
public sealed class Range<T> : IEquatable<Range<T>> where T : IComparable<T>
Type Parameters
T
The type of the value.
- Inheritance
-
Range<T>
- Implements
-
IEquatable<Range<T>>
- Inherited Members
Constructors
- Range(T, T)
Initializes a new instance of the Range<T> class.
Properties
- Max
Gets the maximum value.
- Min
Gets the minimum value.
Methods
- Overlaps(Range<T>)
Determines whether this range overlaps with another range.