5
Answers

Shift 2 dimension array rows

Hi all,

I have a 2 dimensional array, I want shift the value of rows :

int [,] s=new int [2,2];

s= {(1,0,0),(0,1,0),(0,0,1)}

when I shift this array rows like below:

s={(0,1,0),(0,0,1),(0,0,0)}

is it possible by array.copy? and how?
Answers (5)