Array initializers can only be used in a variable or field initializer. Try using a new expression instead.
An array was initialized incorrectly.
The following sample generates CS0623:
class MyClass { public int[] x = { 2, 3, {4}}; // CS0623 // The following declarations show how to initialize an array: // public int[] x = { 2, 3, 4}; // single-dimensional array // int[]x = new int[] {1,2,3}; // dynamically created array // int[,]x = { {1,2}, {3,4}, {5,6} }; // multidimensional array // object[]z = { null, "test", new int[] {2,3} }; // array of objects // int[][]x = { new int[]{2,3}, new int[]{4,5} }; // array of array of ints public static void Main() { } }