/// <summary> /// Returns true if the specified range overlaps this range by at least one position. Adjacent ranges will return false. /// </summary> public static bool Overlaps(this SourceRange range1, SourceRange range2) { if (range1.Holds(range2.Top) || range1.Holds(range2.Bottom) || range2.Holds(range1.Top)) return true; return false; }