Quellcode durchsuchen

2002-10-26 Piers Haken <[email protected]>

	* XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.

svn path=/trunk/mcs/; revision=8584
Piers Haken vor 23 Jahren
Ursprung
Commit
3cac85224b

+ 4 - 0
mcs/class/System.XML/System.Xml/ChangeLog

@@ -1,3 +1,7 @@
+2002-10-26  Piers Haken <[email protected]>
+
+	* XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
+
 2002-10-23  Gonzalo Paniagua Javier <[email protected]>
 
 	* XmlTextReader.cs: don't increment depth for entity references.

+ 1 - 1
mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs

@@ -123,7 +123,7 @@ namespace System.Xml
 				case XmlNodeType.ProcessingInstruction:
 					return XPathNodeType.ProcessingInstruction;
 				}
-				throw new InvalidOperationException ();
+				return (XPathNodeType) (-1);
 			}
 		}