public static selectRangeArea normalizeRange(this selectRangeArea target) { String last = target.ToString(); Int32 sX = Math.Min(target.TopLeft.x, target.BottomRight.x); Int32 sY = Math.Min(target.TopLeft.y, target.BottomRight.y); Int32 eX = Math.Max(target.TopLeft.x, target.BottomRight.x); Int32 eY = Math.Max(target.TopLeft.y, target.BottomRight.y); var output = new selectRangeArea(sX, sY, eX, eY); String now = output.ToString(); if (last != now) { } return(output); }