[Mono-bugs] [Bug 349870] New: Dictionary<TKey, TValue> stores values out of order.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Dec 19 13:38:03 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=349870
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
Found By: ---
Description of Problem:
When using an instance of System.Collection.Dictionary<TKey, TValue>, the
property "Values" returns an ICollection<TValue> that is not in the order that
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.Values property.
Actual Results:
The Values will be enumerated in random order.
Expected Results:
The Values 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