Browse Source

2003-06-27 Duncan Mak <[email protected]>

	* Hashtable.cs: Patch from [email protected], GetEnumerator should be
	returning DictionaryEntrys, instead of just the Key of the table.

svn path=/trunk/mcs/; revision=16251
Duncan Mak 22 năm trước cách đây
mục cha
commit
6923e85550

+ 5 - 0
mcs/class/corlib/System.Collections/ChangeLog

@@ -3,6 +3,11 @@
 	* Hashtable.cs: made SynchedHashtable serializable. Fixes bug #45918.
 	Thanks to [email protected] (Joerg Rosenkranz).
 
+2003-06-27  Duncan Mak  <[email protected]>
+
+	* Hashtable.cs: Patch from [email protected], GetEnumerator should be
+	returning DictionaryEntrys, instead of just the Key of the table.
+
 2003-06-26  Lluis Sanchez Gual  <[email protected]>
 
 	* Hashtable.cs: Fixed bug when serializing and deserializing

+ 1 - 1
mcs/class/corlib/System.Collections/Hashtable.cs

@@ -294,7 +294,7 @@ namespace System.Collections {
 
 		IEnumerator IEnumerable.GetEnumerator ()
 		{
-			return new Enumerator (this, EnumeratorMode.KEY_MODE);
+			return new Enumerator (this, EnumeratorMode.ENTRY_MODE);
 		}