Table of Contents

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
object
Range<T>
Extension Methods

Constructors

Range(T, T)

Class representing range of values.

public Range(T endpoint1, T endpoint2)

Parameters

endpoint1 T

One endpoint of given range

endpoint2 T

Second 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