In Silverlight3, when a generic Dictionary is iterated with foreach and a KeyValuePair, is the iteration guaranteed to visit the items in the dictionary in the order in which the items were added? That is, the iteration sequence has nothing to do with the key's datatype or its value? The documentation is less than explicit on this:
This code will produce output similar to the following: http://msdn.microsoft.com/en-us/library/bwabdf9z.aspx (emphasis added)
Dictionary<String, Object>
foreach (KeyValuePair String, Object kvp in myDictionary) {}
Dictionary<UInt16, String>
foreach (KeyValuePair UInt16, String kvp in myDictionary) {}
Thanks