Compiler Error CS0178
Visual Studio 2012
Invalid rank specifier: expected ',' or ']'
An array initialization was ill-formed. For example, when specifying the array dimensions, you can specify the following:
-
A number in brackets
-
Empty brackets
-
A comma enclosed in brackets
For more information, see Arrays (C# Programming Guide) and the C# specification (C# Language Specification) section on array initializers.