Can one rely that enumerating on the items of a List is done by the order of their insertion?
Does anyone know what the spec says about that?
Thanks!
This will depend on the implementation. Here's a nice overview of the different generic collections. As far as the List<T>
implementation is concerned, enumerating will be done in the same order as elements have been added.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With