public static Range Combine(Range x, Range y) { return(Range.FromIndices(Math.Min(x.Start, y.Start), Math.Max(x.End, y.End))); }