Author: zoltan
Date: 2007-07-09 09:11:57 -0400 (Mon, 09 Jul 2007)
New Revision: 81638
Modified:
trunk/mcs/class/corlib/System/ChangeLog
trunk/mcs/class/corlib/System/RuntimeTypeHandle.cs
Log:
2007-07-10 Zoltan Varga <[EMAIL PROTECTED]>
* RuntimeTypeHandle.cs: Fix signatures of == and != operators.
Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog 2007-07-09 13:03:29 UTC (rev
81637)
+++ trunk/mcs/class/corlib/System/ChangeLog 2007-07-09 13:11:57 UTC (rev
81638)
@@ -1,5 +1,7 @@
2007-07-10 Zoltan Varga <[EMAIL PROTECTED]>
+ * RuntimeTypeHandle.cs: Fix signatures of == and != operators.
+
* ModuleHandle.cs: Add missing 2.0 stuff.
2007-07-08 Zoltan Varga <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/corlib/System/RuntimeTypeHandle.cs
===================================================================
--- trunk/mcs/class/corlib/System/RuntimeTypeHandle.cs 2007-07-09 13:03:29 UTC
(rev 81637)
+++ trunk/mcs/class/corlib/System/RuntimeTypeHandle.cs 2007-07-09 13:11:57 UTC
(rev 81638)
@@ -100,14 +100,14 @@
return value.GetHashCode ();
}
- public static bool operator == (RuntimeTypeHandle left,
RuntimeTypeHandle right)
+ public static bool operator == (RuntimeTypeHandle left, Object
right)
{
- return left.Equals (right);
+ return (right != null) && (right is RuntimeTypeHandle)
&& left.Equals ((RuntimeTypeHandle)right);
}
- public static bool operator != (RuntimeTypeHandle left,
RuntimeTypeHandle right)
+ public static bool operator != (RuntimeTypeHandle left, Object
right)
{
- return !left.Equals (right);
+ return (right == null) || !(right is RuntimeTypeHandle)
|| !left.Equals ((RuntimeTypeHandle)right);
}
public static bool operator == (Object left, RuntimeTypeHandle
right)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches