I have a 2d array like this.
int[ , ] array1 = new int[2, 3] {{10, 20, 30}, {40, 50, 60}};
I’d like to move all elements of array1[0] at once like this.
int array2 = array1[0];
or want to use it like this.
for(int i = 0; i < array1[0].Length; i++) {
…
}
But I get a error msg saying ‘Wrong number of indexes 1' inside [], expected
2’.
Is it impossible??? If so, is there any methods to do it?
Thanks in advance for anyone’s help.