Author: atsushi
Date: 2007-07-09 03:55:18 -0400 (Mon, 09 Jul 2007)
New Revision: 81619

Modified:
   trunk/mcs/class/corlib/System.Reflection/ChangeLog
   trunk/mcs/class/corlib/System.Reflection/CustomAttributeNamedArgument.cs
   trunk/mcs/class/corlib/System.Reflection/CustomAttributeTypedArgument.cs
Log:
2007-07-09  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * CustomAttributeNamedArgument.cs, CustomAttributeTypedArgument.cs:
          added missing operator == and !=.



Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog  2007-07-09 07:30:11 UTC 
(rev 81618)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog  2007-07-09 07:55:18 UTC 
(rev 81619)
@@ -1,3 +1,8 @@
+2007-07-09  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * CustomAttributeNamedArgument.cs, CustomAttributeTypedArgument.cs:
+         added missing operator == and !=.
+
 2007-07-04  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * CustomAttributeNamedArgument.cs CustomAttributeTypedArgument.cs

Modified: 
trunk/mcs/class/corlib/System.Reflection/CustomAttributeNamedArgument.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/CustomAttributeNamedArgument.cs    
2007-07-09 07:30:11 UTC (rev 81618)
+++ trunk/mcs/class/corlib/System.Reflection/CustomAttributeNamedArgument.cs    
2007-07-09 07:55:18 UTC (rev 81619)
@@ -76,6 +76,16 @@
                {
                        return (memberInfo.GetHashCode () << 16) + 
typedArgument.GetHashCode ();
                }
+
+               public static bool operator == (CustomAttributeNamedArgument 
obj1, CustomAttributeNamedArgument obj2)
+               {
+                       return obj1.Equals (obj2);
+               }
+
+               public static bool operator != (CustomAttributeNamedArgument 
obj1, CustomAttributeNamedArgument obj2)
+               {
+                       return !obj1.Equals (obj2);
+               }
        }
 
 }

Modified: 
trunk/mcs/class/corlib/System.Reflection/CustomAttributeTypedArgument.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/CustomAttributeTypedArgument.cs    
2007-07-09 07:30:11 UTC (rev 81618)
+++ trunk/mcs/class/corlib/System.Reflection/CustomAttributeTypedArgument.cs    
2007-07-09 07:55:18 UTC (rev 81619)
@@ -84,6 +84,16 @@
                {
                        return (argumentType.GetHashCode () << 16) + (value != 
null ? value.GetHashCode () : 0);
                }
+
+               public static bool operator == (CustomAttributeTypedArgument 
obj1, CustomAttributeTypedArgument obj2)
+               {
+                       return obj1.Equals (obj2);
+               }
+
+               public static bool operator != (CustomAttributeTypedArgument 
obj1, CustomAttributeTypedArgument obj2)
+               {
+                       return !obj1.Equals (obj2);
+               }
        }
 
 }

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

Reply via email to