using System; using System.Runtime.CompilerServices; class InitializerDemo { private int[] field = new int[]{0, 1, 2, 3, 4, 5, 6}; private char[,] chars = new char[,]{ {'A', 'B', 'C'}, {'D', 'E', 'F'}, }; private InitializerDemo() { int[] nums = new int[]{0, 1, 2, 3, 4, 5, 6}; string[,] strs2 = new string[2, 2]; // need more work here strs2.Set(0, 0, "John"); strs2.Set(0, 1, "Doe"); strs2.Set(1, 0, "1"); strs2.Set(1, 1, "2"); string[,] strs1 = strs2; nums[1]++; strs1.Set(0, 2, "OK"); } }