[Mono-bugs] [Bug 349875] New: Dictionary<TKey, TValue> stores values out of order.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Dec 19 13:56:41 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=349875
Summary: Dictionary<TKey, TValue> stores values out of order.
Product: Mono: Class Libraries
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at ximian.com
ReportedBy: josh+novell at mouch.name
QAContact: mono-bugs at ximian.com
Depends on: 349870
Found By: ---
Description of Problem:
When using an instance of System.Collection.Dictionary<TKey, TValue>, the
enumerator returned by GetEnumerator enumerates over the dictionary's
KeyValuePair<TKey, TValue> in a different order than how the items were added
to the dictionary. This behavior differs from .Net, which returns the Items in
the order they were added.
Steps to reproduce the problem:
1. Create a System.Collection.Dictionary<TKey, TValue>
2. Add numerous items to the dictionary.
3. Enumerate (foreach) over the dictionary, noting the order of the items.
Actual Results:
The items will be enumerated in random order.
Expected Results:
The items should be enumerated over in the order they were added.
How often does this happen?
Every time
--
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