问题 How to delete a specific row and column from 2D array in C#? int[,] array= {{1,2,3},{4,5,6},{7,8,9}}; lets say I want to delete row i and column i (skipping them) ... for nXn array not just 3x3 and store the remaining array in a new array... so the output would be: {5,6},{8,9} 回答1: There's no built-in way to do that, you can do it yourself: static void Main() { int[,] array = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }; var trim = TrimArray(0, 2, array); } public static int[,] TrimArray(int