[Mono-bugs] [Bug 349870] Dictionary<TKey, TValue> stores values out of order.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Dec 19 14:05:32 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=349870

User vargaz at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=349870#c2


Zoltan Varga <vargaz at gmail.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |vargaz at gmail.com
         Resolution|INVALID                                         |WONTFIX




--- Comment #2 from Zoltan Varga <vargaz at gmail.com>  2007-12-19 12:05:32 MST ---
The order of the values returned is not specified, as described here:

http://msdn2.microsoft.com/en-us/library/ekcfxy3x.aspx

"The order of the values in the Dictionary<(Of <(TKey,
TValue>)>)..::.ValueCollection is unspecified, but it is the same order as the
associated keys in the Dictionary<(Of <(TKey, TValue>)>)..::.KeyCollection
returned by the Keys property."

The reason MS.NET returns them in the same order is probably an accident, and
could change when different types of keys and values used (and thus the
hashcode
calculation is different).


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list