Expand|Select|Wrap|Line Numbers
- int[][] j = new int[2][];
- j[0] = new int[] { 0 };
- int[][] k = (int[][])j.Clone();
- k[0][0] = 1;
- Console.WriteLine("j: "+j[0][0].ToString());
- Console.WriteLine("k: " + k[0][0].ToString());
I've tried with both Clone, CopyTo and Array.Copy, all with the same result.
Anyone who can tell me what im doing wrong?