拷贝数组
int[] pains={9,3,4,5}; int[] copy=new int[pains.Length]; pains.CopyTo(copy,0); Array.Copy(pains.copy,copy,Length); int[] copy=(int[])pains.Clone();
二维数组:
int[,] items=new int[2,3]
拷贝数组
int[] pains={9,3,4,5}; int[] copy=new int[pains.Length]; pains.CopyTo(copy,0); Array.Copy(pains.copy,copy,Length); int[] copy=(int[])pains.Clone();
二维数组:
int[,] items=new int[2,3]