2004-02-05 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Thu, 5 Feb 2004 16:15:59 +0000 (16:15 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Thu, 5 Feb 2004 16:15:59 +0000 (16:15 -0000)
* DefaultContext.cs : trivial processing order fix.

svn path=/trunk/mcs/; revision=22802

mcs/class/System.XML/System.Xml.XPath/ChangeLog
mcs/class/System.XML/System.Xml.XPath/DefaultContext.cs

index fd1d6b3151ec6111721ec1815b66f58cc55091d7..c1b99eeb4aada823db9841640d78c700f7fcff55 100644 (file)
@@ -1,3 +1,7 @@
+2004-02-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DefaultContext.cs : trivial processing order fix.
+
 2004-01-27  Atsushi Enomoto  <atsushi@ximian.com>
 
        * DefaultContext.cs : Avoid exception if possible.
index 4e3480cb1181d3f2024f2d3a43ead4ddd7729c78..05c9d262e5d3326faccc6811e9485704152ee6d2 100644 (file)
@@ -62,6 +62,8 @@ namespace System.Xml.XPath
                {
                        if (arg == null)
                                throw new ArgumentNullException ();
+                       if (arg is BaseIterator)
+                               arg = ToString (arg);   // follow on
                        if (arg is string)
                        {
                                string s = arg as string;
@@ -76,8 +78,6 @@ namespace System.Xml.XPath
                                        return double.NaN;
                                }
                        }
-                       if (arg is BaseIterator)
-                               arg = ToString (arg);   // follow on
                        if (arg is double)
                                return (double) arg;
                        if (arg is bool)