* XmlQualifiedName.cs : Fixed bug in equality operator.
authorLluis Sanchez <lluis@novell.com>
Sun, 18 May 2003 18:16:18 +0000 (18:16 -0000)
committerLluis Sanchez <lluis@novell.com>
Sun, 18 May 2003 18:16:18 +0000 (18:16 -0000)
svn path=/trunk/mcs/; revision=14669

mcs/class/System.XML/System.Xml/ChangeLog
mcs/class/System.XML/System.Xml/XmlQualifiedName.cs

index b820e45b0f6a91bcad42179020b67be197bd5ba8..d8693b21f3a57c74f394b8c17487bcca9e68f385 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-18  Lluis Sanchez Gual <lluis@ideary.com>
+
+       * XmlQualifiedName.cs : Fixed bug in equality operator.
+
 2003-05-18  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
 
        * XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
index 4b7a87b5eee5cf8e74ca270f6f4d7ebf11bcd5b5..219f98cbab17f448dbf394ab35c7c17a53fc4ac6 100644 (file)
@@ -97,6 +97,9 @@ namespace System.Xml
                // Operators
                public static bool operator == (XmlQualifiedName a, XmlQualifiedName b)
                {
+                       if((Object)a == (Object)b)
+                               return true;
+
                        if((Object)a == null || (Object)b == null)
                                return false;