[Mono-bugs] [Bug 525089] New: HashTable Enumeration order is different from .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 24 12:30:23 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=525089


           Summary: HashTable Enumeration order is different from .NET
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tom_hindle at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=307663)
 --> (http://bugzilla.novell.com/attachment.cgi?id=307663)
Shows different order of keys when foreaching over a hash table.

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11)
Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11

Attaching Test case.

Hashtable t = new Hashtable();
t.Add("1", "1"); // Add some data
t.Add("2", 2"); // Add some data
t.Add("3", "3"); // Add some data

foreach(string s in t.Keys) 
Console.WriteLine(s); // prints keys in different order to .NET

Reproducible: Always

Steps to Reproduce:
1. Compile and Run Attached test case
2.
3.
Actual Results:  
tom5
tom1
tom2
tom3
tom4

Expected Results:  
tom5
tom2
tom4
tom1
tom3

-- 
Configure bugmail: http://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