Class Range<T>
- Namespace
- CMS.OnlineMarketing
- Assembly
- CMS.OnlineMarketing.dll
Class representing range of values.
public class Range<T> where T : IComparable
Type Parameters
T
- Inheritance
-
objectRange<T>
- Extension Methods
Constructors
Range(T, T)
Class representing range of values.
public Range(T endpoint1, T endpoint2)
Parameters
endpoint1
TOne endpoint of given range
endpoint2
TSecond endpoint of given range
Methods
IntersectsWith(Range<T>)
Returns true if range intersects with another one.
public bool IntersectsWith(Range<T> range)
Parameters
range
Range<T>Second range to check for intersection
Returns
- bool
True if the two ranges intersects, false otherwise