Browse Source

2002-03-08 Duncan Mak <[email protected]>

	* XPathNamespaceScope.cs:
	* XPathNodeType.cs:
	* XPathResultType.cs:
	* XmlDataType.cs:
	* XmlSortOrder.cs: Used EnumCheck and realigned elements to be compatible with MS
	implementation. XPathResultType is interesting as EnumCheck does
	not show the Navigator element, but shows the String element twice.

svn path=/trunk/mcs/; revision=3003
Duncan Mak 24 năm trước cách đây
mục cha
commit
a29d1d89de

+ 10 - 0
mcs/class/System.XML/System.Xml.XPath/ChangeLog

@@ -1,3 +1,13 @@
+2002-03-08  Duncan Mak  <[email protected]>
+
+	* XPathNamespaceScope.cs:
+	* XPathNodeType.cs:
+	* XPathResultType.cs:
+	* XmlDataType.cs:
+	* XmlSortOrder.cs: Used EnumCheck and realigned elements to be compatible with MS
+	implementation. XPathResultType is interesting as EnumCheck does
+	not show the Navigator element, but shows the String element twice.
+
 2002-03-08  Jason Diamond  <[email protected]>
 
 	* XmlDataType.cs, XmlSortOrder.cs, XPathNodeType.cs: Added files.

+ 3 - 3
mcs/class/System.XML/System.Xml.XPath/XPathNamespaceScope.cs

@@ -11,8 +11,8 @@ namespace System.Xml.XPath
 {
 	public enum XPathNamespaceScope
 	{
-		All,
-		ExcludeXml,
-		Local
+		All = 0,
+		ExcludeXml = 1,
+		Local =2,
 	}
 }

+ 10 - 10
mcs/class/System.XML/System.Xml.XPath/XPathNodeType.cs

@@ -11,15 +11,15 @@ namespace System.Xml.XPath
 {
 	public enum XPathNodeType
 	{
-		All,
-		Attribute,
-		Comment,
-		Element,
-		Namespace,
-		ProcessingInstruction,
-		Root,
-		SignificantWhitespace,
-		Text,
-		Whitespace
+		Root = 0,
+		Element = 1,
+		Attribute = 2,
+		Namespace = 3,
+		Text = 4,
+		SignificantWhitespace = 5,
+		Whitespace = 6,
+		ProcessingInstruction = 7,
+		Comment = 8,
+		All = 9,
 	}
 }

+ 7 - 7
mcs/class/System.XML/System.Xml.XPath/XPathResultType.cs

@@ -11,12 +11,12 @@ namespace System.Xml.XPath
 {
 	public enum XPathResultType
 	{
-		Any,
-		Boolean,
-		Error,
-		Navigator,
-		NodeSet,
-		Number,
-		String 
+		Number = 0,
+		String = 1,
+		Boolean = 2,
+		NodeSet = 3,
+		Navigator = 4, // [MonoTODO]
+		Any = 5,
+		Error = 6,
 	}
 }

+ 2 - 2
mcs/class/System.XML/System.Xml.XPath/XmlDataType.cs

@@ -11,7 +11,7 @@ namespace System.Xml.XPath
 {
 	public enum XmlDataType
 	{
-		Number,
-		Text
+		Text = 1,
+		Number = 2,
 	}
 }

+ 2 - 2
mcs/class/System.XML/System.Xml.XPath/XmlSortOrder.cs

@@ -11,7 +11,7 @@ namespace System.Xml.XPath
 {
 	public enum XmlSortOrder
 	{
-		Ascending,
-		Descending
+		Ascending = 1,
+		Descending = 2,
 	}
 }