D
DotNetED
Hi,
If I use the GetEnumerator approach to walking through an ArrayList, is
there a guarantee that the objects in the ArrayList will be retrieved (with
<enumerator>.Current) in the same order they were added? that is, first I
will get the element at index 0, then the element at one and so on? Or is
this not specified and I can therefore get the elements in a random order?
Regards
E!
If I use the GetEnumerator approach to walking through an ArrayList, is
there a guarantee that the objects in the ArrayList will be retrieved (with
<enumerator>.Current) in the same order they were added? that is, first I
will get the element at index 0, then the element at one and so on? Or is
this not specified and I can therefore get the elements in a random order?
Regards
E!