Bladeren bron

2007-07-09 Atsushi Enomoto <[email protected]>

	* LockCookie.cs, AsyncFlowControl.cs :
	  added missing operator == and !=.


svn path=/trunk/mcs/; revision=81620
Atsushi Eno 18 jaren geleden
bovenliggende
commit
4001d11d0e

+ 10 - 0
mcs/class/corlib/System.Threading/AsyncFlowControl.cs

@@ -101,5 +101,15 @@ namespace System.Threading {
 				return(false);
 			}
 		}
+
+		public static bool operator == (AsyncFlowControl obj1, AsyncFlowControl obj2)
+		{
+			return obj1.Equals (obj2);
+		}
+
+		public static bool operator != (AsyncFlowControl obj1, AsyncFlowControl obj2)
+		{
+			return !obj1.Equals (obj2);
+		}
 	}
 }

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

@@ -1,3 +1,8 @@
+2007-07-09  Atsushi Enomoto  <[email protected]>
+
+	* LockCookie.cs, AsyncFlowControl.cs :
+	  added missing operator == and !=.
+
 2007-05-22  Jonathan Chambers  <[email protected]>
 
 	* Thread.cs: Use & to check ThreadState rather than ==.

+ 10 - 0
mcs/class/corlib/System.Threading/LockCookie.cs

@@ -86,6 +86,16 @@ namespace System.Threading
 			
 			return(obj.Equals (this));
 		}
+
+		public static bool operator == (LockCookie obj1, LockCookie obj2)
+		{
+			return obj1.Equals (obj2);
+		}
+
+		public static bool operator != (LockCookie obj1, LockCookie obj2)
+		{
+			return !obj1.Equals (obj2);
+		}
 #endif
 
 	}