Merge pull request #347 from JamesB7/master
[mono.git] / mcs / class / System.Xml.Linq / System.Xml.Linq / XName.cs
index 1559ee75575801714567cf49cd852bd6ff3b51af..80d0e7b09cb0ac9fc5a9b9d086263001b5753b87 100644 (file)
@@ -130,25 +130,25 @@ namespace System.Xml.Linq
                        return local.GetHashCode () ^ ns.GetHashCode ();
                }
 
-               public static bool operator == (XName n1, XName n2)
+               public static bool operator == (XName left, XName right)
                {
-                       if ((object) n1 == null)
-                               return (object) n2 == null;
-                       else if ((object) n2 == null)
+                       if ((object) left == null)
+                               return (object) right == null;
+                       else if ((object) right == null)
                                return false;
-                       return object.ReferenceEquals (n1, n2) ||
-                               n1.local == n2.local && n1.ns == n2.ns;
+                       return object.ReferenceEquals (left, right) ||
+                               left.local == right.local && left.ns == right.ns;
                }
 
                [CLSCompliant (false)]
-               public static implicit operator XName (string s)
+               public static implicit operator XName (string expandedName)
                {
-                       return s == null ? null : Get (s);
+                       return expandedName == null ? null : Get (expandedName);
                }
 
-               public static bool operator != (XName n1, XName n2)
+               public static bool operator != (XName left, XName right)
                {
-                       return ! (n1 == n2);
+                       return ! (left == right);
                }
 
                public override string ToString ()