Author: spouliot
Date: 2008-02-16 15:34:52 -0500 (Sat, 16 Feb 2008)
New Revision: 95918

Modified:
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/Object.cs
   trunk/mcs/class/corlib/System/ValueType.cs
Log:
2008-02-16  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * Object.cs: Fix parameter name to match MS implementation. Found
        using Gendarme.
        * ValueType.cs: Fix parameter name to match MS implementation. 
        Found using Gendarme.



Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2008-02-16 20:19:48 UTC (rev 
95917)
+++ trunk/mcs/class/corlib/System/ChangeLog     2008-02-16 20:34:52 UTC (rev 
95918)
@@ -1,3 +1,10 @@
+2008-02-16  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * Object.cs: Fix parameter name to match MS implementation. Found
+       using Gendarme.
+       * ValueType.cs: Fix parameter name to match MS implementation. 
+       Found using Gendarme.
+
 2008-02-14  Jb Evain  <[EMAIL PROTECTED]>
 
        * Delegate.cs (CreateDelegate): refactor. DRY!

Modified: trunk/mcs/class/corlib/System/Object.cs
===================================================================
--- trunk/mcs/class/corlib/System/Object.cs     2008-02-16 20:19:48 UTC (rev 
95917)
+++ trunk/mcs/class/corlib/System/Object.cs     2008-02-16 20:34:52 UTC (rev 
95918)
@@ -51,9 +51,9 @@
                //   Compares this object to the specified object.
                //   Returns true if they are equal, false otherwise.
                // </summary>
-               public virtual bool Equals (object o)
+               public virtual bool Equals (object obj)
                {
-                       return this == o;
+                       return this == obj;
                }
 
                // <summary>

Modified: trunk/mcs/class/corlib/System/ValueType.cs
===================================================================
--- trunk/mcs/class/corlib/System/ValueType.cs  2008-02-16 20:19:48 UTC (rev 
95917)
+++ trunk/mcs/class/corlib/System/ValueType.cs  2008-02-16 20:34:52 UTC (rev 
95918)
@@ -84,8 +84,9 @@
                //   True if this instance and o represent the same type
                //   and have the same value.
                // </summary>
-               public override bool Equals (object o) {
-                       return DefaultEquals (this, o);
+               public override bool Equals (object obj)
+               {
+                       return DefaultEquals (this, obj);
                }
 
                [MethodImplAttribute (MethodImplOptions.InternalCall)]

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

Reply via email to