Edit

Share via


Bounds can be specified only for the top-level array when initializing an array of arrays

An array initialization for a jagged array (array of arrays) sets the initial length of one of the lower levels. You can specify the length of only the top-level array in the array declaration statement.

Error ID: BC32014

To correct this error

  1. Remove the length specification from all but the top-level array.

  2. Set the initial length of lower-level arrays in subsequent assignment statements using the New keyword.

See also