I have an int array with to dimentions:
int[,] intArray2D = new int[3,3];
I would like to have two methods such as:
int[,] removeLine(int[,] array, int arrayColumnsCount, int lineToRemove){...}
int[,] removeColumn(int[,] array, int arrayColumnsCount, int columnToRemove){...}
So, having the array:
1 2 3
4 5 6
7 8 9
Calling the removeLine method with lineToRemove = 1 I must get the array:
1 2 3
7 8 9
Calling the columnLine method with columnToRemove = 1 I must get the array:
1 3
4 6
7 9
What are your implementation advices?
Thanks
RT