Exemplo n.º 1
0
 /// <summary>
 /// Returns true if this range value overlaps at any point with the supplied range.
 /// </summary>
 /// <param name="range"></param>
 /// <returns></returns>
 public override bool Overlaps(NumericRange <int> range)
 {
     return(Low <= range.High || High >= range.Low);
 }
Exemplo n.º 2
0
 public abstract bool Contains(NumericRange <T> testRange); // Range parameter is contained (inclusive)
 public abstract bool Overlaps(NumericRange <T> testRange); // Range parameter partially overlaps this range (inclusive)
Exemplo n.º 3
0
 public override bool Contains(NumericRange <int> range)
 {
     return(Low <= range.Low && High >= range.High);
 }
Exemplo n.º 4
0
 public abstract bool Contains(T value);                    // Generic parameter is contained within the range (inclusive).
 public abstract bool Contains(NumericRange <T> testRange); // Range parameter is contained (inclusive)