SourceGrid.Range.Union C# (CSharp) Method

Union() public static method

Returns a range with the smaller Start and the bigger End. The Union of the 2 Range. If one of the range is empty then the return is the other range.
public static Union ( Range p_Range1, Range p_Range2 ) : RangeRegion
p_Range1 Range
p_Range2 Range
return RangeRegion
        public static RangeRegion Union(Range p_Range1, Range p_Range2)
        {
            RangeRegion range = new RangeRegion();
            range.Add(p_Range1);
            range.Add(p_Range2);
            return range;
        }