Author: miguel
Date: 2007-03-16 14:55:00 -0500 (Fri, 16 Mar 2007)
New Revision: 74484

Modified:
   trunk/mcs/class/corlib/System.Reflection.Emit/OpCode.cs
Log:
Add methods

Modified: trunk/mcs/class/corlib/System.Reflection.Emit/OpCode.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection.Emit/OpCode.cs     2007-03-16 
19:51:10 UTC (rev 74483)
+++ trunk/mcs/class/corlib/System.Reflection.Emit/OpCode.cs     2007-03-16 
19:55:00 UTC (rev 74484)
@@ -144,5 +144,17 @@
                                }
                        }
                }
+
+#if NET_2_0
+               public static bool operator == (OpCode a, OpCode b)
+               {
+                       return a.op1 == b.op1 && a.op2 == b.op2;
+               }
+
+               public static bool operator != (OpCode a, OpCode b)
+               {
+                       return a.op1 != b.op1 || a.op2 != b.op2;
+               }
+#endif
        }
 } 

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

Reply via email to