M
Magnus.Moraberg
Hi,
As I add items to a Dictionary, is the order that I add them
preserved?
I'm adding items from a sorted array to the dictionary using the Add
method, so I therefore add the items to the dictionary in a sorted
fashion. The question is, if I then use a foreach loop on my
dictionary, will this dictionary always print out in sorted order?
Thanks,
Barry
As I add items to a Dictionary, is the order that I add them
preserved?
I'm adding items from a sorted array to the dictionary using the Add
method, so I therefore add the items to the dictionary in a sorted
fashion. The question is, if I then use a foreach loop on my
dictionary, will this dictionary always print out in sorted order?
Thanks,
Barry