Hey guys,
Can an array list be multidimensional? I doubt it can be :( if it can't can you create a hashtable that has more then one value to each key?
Printable View
Hey guys,
Can an array list be multidimensional? I doubt it can be :( if it can't can you create a hashtable that has more then one value to each key?
I dont think it can be multi-dimentional. I double checked and I couldnt find anything stating otherwise. Besides the .CopyTo method
can only be used to copy elements to another one dimensional array.
Well, if you code it well you can instantiate an arraylist object for each object of the main arraylist, thus creating a virtual multidimensional arraylist :afrog:
True, like a collection of collections.
thats a lot of coding when I just need two values for each item in the array or key.
I could have swore there was something that worked with keys that could have two values.
Create your own class that holds all the required fields, keep adding those objects to an arraylist.
Good idea that's what I'm talking about :)Quote:
Originally Posted by mendhak