* Thread.cs: SetData() method: use Hashtable.Contains to check
authorLluis Sanchez <lluis@novell.com>
Thu, 14 Aug 2003 22:40:55 +0000 (22:40 -0000)
committerLluis Sanchez <lluis@novell.com>
Thu, 14 Aug 2003 22:40:55 +0000 (22:40 -0000)
  if a dataslot has been allocated (value could be null).

svn path=/trunk/mcs/; revision=17344

mcs/class/corlib/System.Threading/ChangeLog
mcs/class/corlib/System.Threading/Thread.cs

index 8a94a0f256ad29375eebd0d1847ad7804bfe7f15..5be6e966b9d5dcc28c6a5f3119d304db3b8bf1f0 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-14  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * Thread.cs: SetData() method: use Hashtable.Contains to check
+         if a dataslot has been allocated (value could be null).
+
 2003-07-23  Duncan Mak  <duncan@ximian.com>
 
        * WaitHandle.cs (CheckDisposed): This method is not in the public
index b04cc1ada65bdd18eb46a293e9e13977d33080ce..257b199bf570ca66aa23577bfc049011a65e21e3 100755 (executable)
@@ -174,7 +174,7 @@ namespace System.Threading
                                           object data) {
                        Hashtable slothash=GetTLSSlotHash();
 
-                       if(slothash[slot]!=null) {
+                       if(slothash.Contains(slot)) {
                                slothash.Remove(slot);
                        }