Exemple #1
0
 public static OrderedRange Merge(this OrderedRange @this, OrderedRange other)
 {
     return(new OrderedRange(
                Math.Min(@this.Start, other.Start),
                Math.Max(@this.End, other.End)));
 }
Exemple #2
0
 public static bool OverlapsWith(this OrderedRange @this, OrderedRange other)
 {
     return(@this.Start <= other.Start
                         ? @this.End >= other.Start
                         : other.End >= @this.Start);
 }