Author: zoltan
Date: 2005-11-06 15:43:28 -0500 (Sun, 06 Nov 2005)
New Revision: 52631

Modified:
   trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog
   trunk/mcs/class/corlib/System.Reflection.Emit/Label.cs
Log:
2005-11-06  Zoltan Varga  <[EMAIL PROTECTED]>

        * Label.cs: Add == and != operators.


Modified: trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog     2005-11-06 
18:28:11 UTC (rev 52630)
+++ trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog     2005-11-06 
20:43:28 UTC (rev 52631)
@@ -1,3 +1,7 @@
+2005-11-06  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * Label.cs: Add == and != operators.
+
 2005-10-30  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * FieldBuilder.cs: Add implementation of new UMarshal property.

Modified: trunk/mcs/class/corlib/System.Reflection.Emit/Label.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection.Emit/Label.cs      2005-11-06 
18:28:11 UTC (rev 52630)
+++ trunk/mcs/class/corlib/System.Reflection.Emit/Label.cs      2005-11-06 
20:43:28 UTC (rev 52631)
@@ -61,6 +61,14 @@
                {
                        return (label == obj.label);
                }
+
+               public static bool operator == (Label a, Label b) {
+                       return a.Equals (b);
+               }
+
+               public static bool operator != (Label a, Label b) {
+                       return !(a == b);
+               }
 #endif
 
                public override int GetHashCode () {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to