[Mono-bugs] [Bug 428216] New: [PATCH] return Dictionary keys as in added order

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Sep 21 20:42:50 EDT 2008


           Summary: [PATCH] return Dictionary keys as in added order
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: atsushi at ximian.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=240773)
 --> (https://bugzilla.novell.com/attachment.cgi?id=240773)
proposed patch, UNTESTED

It seems that System.Collections.Generic.Dictionary KeyCollection returns keys
in "added" order to the dictionary. And it is explicitly described in MSDN:

"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 Dictionary<(Of <(TKey, TValue>)>)..::.Keys property. "

While I believe this kind of explicit description as Microsoft's bad
subservient habit to noisy customers who claims implementations' consistent
behavior to prior versions, I have a patch to fix to fill this implementation

Though I haven't really tested the patch, as right now I'm on windows and the
runtime broke nunit-console runner on this platform.

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