> On 7/5/07, Frans Bouma <[EMAIL PROTECTED]> wrote:
> >
> > One could use the enumerator indeed, but if I add an item, is it
> > always appended to the list? IMHO undefined. The Dictionary<T,U> docs say:
> > "For purposes of enumeration, each item in the dictionary is treated as a
> > KeyValuePair structure representing a value and its key. The order in
> > which
> > the items are returned is undefined."
> >
> > So it's undefined what order the items are returned. :)
>
>
> It's not undefined. It's just not defined in a way that's useful to anybody.
> :)
Not to be a nittpicker, but it literarly says 'it's undefined' (the
docs) ;)
> Dictionaries of identical size with identical items will enumerate
> identically. I'm sure if someone really wants to know what order things will
> come out in, they can find a way. ;)
Heh, ok, I see this the same as the order in which SELECT * FROM TABLE
returns its rows. Normally, the order is typically the same, though it could be
different under certain situations
FB
===================================
This list is hosted by DevelopMentor� http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com