On Mon, 04 Jun 2007 13:18:04 -0700, Nicholas Paldino [.NET/C# MVP]
<mv*@spam.guard .caspershouse.c omwrote:
While yes, the elements are not sorted by any attributes of the keys
or
values, they are sorted by position, which is implied by the index. If
the
numeric index didn't indicate position, then what would it represent?
Well, I thought my post was clear enough on that. However, as an example
of the ambiguity, it could be that accessing an item via an index simply
returns items in the same order that foreach() does. All collections that
I've seen implement IEnumerable and so allow foreach(), but not all
collections mandate a specific order for items to be retrieved via
foreach().
In any case, while I am surprised that the reference for the Item property
doesn't make this clear, I agree that the reference for Add() and
RemoveAt() do. Thanks to you both for your replies.
Pete