What do you want to do exactly? You define the array as 2D-imensional new XYZ[][] and after that you want to set its value only to a first dimension XYZ[]++, you can't do that.
new XYZ[][];
XYZ[0][0]++;
new XYZ[];
XYZ[0]++; <-- This is what you'r looking for.