[Mono-bugs] [Bug 45538][Min] New - Hashtable IEnumerable.GetEnumerator is wrong

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 27 Jun 2003 10:39:26 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by paf@design.ru.

http://bugzilla.ximian.com/show_bug.cgi?id=45538

--- shadow/45538	Fri Jun 27 10:39:26 2003
+++ shadow/45538.tmp.12368	Fri Jun 27 10:39:26 2003
@@ -0,0 +1,31 @@
+Bug#: 45538
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: PAF@design.ru               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Hashtable IEnumerable.GetEnumerator is wrong
+
+it should return ENTRY enumerator, not KEY enumerator
+
+--- 0/Hashtable.cs	2003-06-27 18:37:42.000000000 +0400
++++ Hashtable.cs	2003-06-27 14:27:32.000000000 +0400
+@@ -285,7 +285,7 @@
+ 
+ 		IEnumerator IEnumerable.GetEnumerator ()
+ 		{
+-			return new Enumerator (this, 
+EnumeratorMode.KEY_MODE);
++			return new Enumerator (this, 
+EnumeratorMode.ENTRY_MODE);
+ 		}