How ca I delete an entire row from an 2d array? I want to keep deleting 1 row from the array shipPosition,untill it doesn`t have any elements.
shipPosition -= shipPosition[0,0]
and
shipPosition -= shipPosition[0,1]
E.g.
int[,] shipPosition = new int[3, 2];
shipPosition[0, 0] = 2;
shipPosition[0, 1] = 3;
shipPosition[1, 0] = 4;
shipPosition[1, 1] = 5;
shipPosition[2, 0] = 6;
shipPosition[2, 1] = 7;