Browse Source

2002-07-05 Gonzalo Paniagua Javier <[email protected]>

	* HybridDictionary.cs:
	(Remove): fixed. The value is either in the list or in the hash.

svn path=/trunk/mcs/; revision=5598
Gonzalo Paniagua Javier 23 years ago
parent
commit
6b0bd13fed

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

@@ -1,3 +1,8 @@
+2002-07-05  Gonzalo Paniagua Javier <[email protected]>
+
+	* HybridDictionary.cs:
+	(Remove): fixed. The value is either in the list or in the hash.
+
 2002-06-24  Andrew Birkett <[email protected]>
 
 	* BitVector32.cs: Implemented 'set' section indexer.  Check for

+ 2 - 1
mcs/class/System/System.Collections.Specialized/HybridDictionary.cs

@@ -163,7 +163,8 @@ namespace System.Collections.Specialized {
 		{
 			if (list != null)
 				list.Remove (key);
-			hashtable.Remove (key);
+			else	
+				hashtable.Remove (key);
 		}
 		
 		private void Switch ()