How to remove duplicates from int[][]
问题 I have an array of arrays - information about selection in Excel using VSTO, where each element means start and end selection position. For example, int[][] selection = { new int[] { 1 }, // column A new int[] { 6 }, // column F new int[] { 6 }, // column F new int[] { 8, 9 } // columns H:I new int[] { 8, 9 } // columns H:I new int[] { 12, 15 } // columns L:O }; Could you please help me to find a way, maybe using LINQ or Extension methods, to remove duplicated elements? I mean: F and F , H:I