Finally what is that?!

  • Thread starter Thread starter C# newbie
  • Start date Start date
C

C# newbie

Hi,

So far, I have found that ArrayList is a single dimension array and there is
no way we can use it terms of Multi-dimensional array.
Is this right or no ?

Eveybody says something different about this!!!
 
It is similar to a single dimensional array that can hold any object. If
each object happens to be an array (or another ArrayList), then effectively
you have a 2 dimensional array. And so on, you can have a multi-dimensional
array of any depth.

This is exactly the way regular object arrays work. Except that they cannot
grow and shrink dynamically.
 
Thanks Marina, so it means I can have an array or structure into an element
of the arraylist so contents of every element is different with other ones.
 
----- Marina wrote: ----
It is similar to a single dimensional array that can hold any object. I
each object happens to be an array (or another ArrayList), then effectivel
you have a 2 dimensional array. And so on, you can have a multi-dimensiona
array of any depth

not really. that's not the same thing. that's an arraylist of arraylist, which is similar to a jagged-edge array [x][], but not the same thing as a multi-dimensional array [x,y
This is exactly the way regular object arrays work. Except that they canno
grow and shrink dynamically

again no. array[,] and array[][] are very different
 
As I said before. Eveybody says something different!
;(

Daniel Jin said:
----- Marina wrote: -----


not really. that's not the same thing. that's an arraylist of
arraylist, which is similar to a jagged-edge array [x][], but not the same
thing as a multi-dimensional array [x,y]
This is exactly the way regular object arrays work. Except that they cannot
grow and shrink dynamically.

again no. array[,] and array[][] are very different.

C# newbie said:
and there
is
no way we can use it terms of Multi-dimensional array.
Is this right or no ?
 
Back
Top