Multidimensional arrays in VB.NET 2010

Posted by matt_t on Stack Overflow See other posts from Stack Overflow or by matt_t
Published on 2011-01-01T22:17:42Z Indexed on 2011/01/02 2:54 UTC
Read the original article Hit count: 461

Filed under:
|

Is there any way to create a multidinensional array that contains arrays of different lengths (similar to nesting arrays of different lengths in python).

Because if I were to declare a variable Dim accounts(2,2) As Integer all 1D arrays at each dimension have the same length. Is there any way to create an array so that this is not the case?

e.g The above code would create an array like this: [[0,0],[0,0]] but would it be possible to create this: [[0,0],[0,0,0]]

Apologies for the poor explanation but I cannot think of any better ways to explain.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about vb.net-2010