What is the difference between jagged array and Multidimensional array. Is there a benefit of one on another?
And why would the Visual Studio not allow me to do a
MyClass[][] abc = new MyClass[10][20];
(We used to do that in C++, but in C# it underlines [20] with red wriggly line.. Says invalid rank specifier)
but is happy with
MyClass[,] abc = new MyClass[10,20];
Finally how can I initialize this in a single line (like we do in simple array with {new xxx...}{new xxx....}
)
MyClass[][,][,] itemscollection;