Multidimensional arrays? anything else?

D

d[ - - ]b

Hi there,

Just wondering, if there is any way to have a dynamic / unspecified size of
an array? It obviously needs to be updated, deleted etc. The only way I
thought is by making the array massive at the start? Any other ideas?
Apparently Hashtable, ArrayList etc are useless as they all take one
dimension. :( Please help me!

Thanks,
Naomi
 
K

Kevin Spencer

Just wondering, if there is any way to have a dynamic / unspecified size
of
an array? It obviously needs to be updated, deleted etc. The only way I
No.

Apparently Hashtable, ArrayList etc are useless as they all take one
dimension. :( Please help me!

Useless for what?

While arrays can be multi-dimensional, Collections can behave so. Simply use
a Collection of Collections. Similar to a jagged array.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

d[ - - ]b said:
Hi there,

Just wondering, if there is any way to have a dynamic / unspecified size of
an array? It obviously needs to be updated, deleted etc. The only way I
thought is by making the array massive at the start? Any other ideas?
Apparently Hashtable, ArrayList etc are useless as they all take one
dimension. :( Please help me!

Thanks,
Naomi
 
A

AlexS

Hi, d[ - - ]b

As collections, like ArrayList, can accept any objects including collections
as items, you can have array lists of array lists of array lists etc. Also,
I would suggest to lookup jagged arrays and multidimensional arrays in .Net
reference documentation. The rest depends on what exactly you need to do.

HTH
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top