Author: atsushi
Date: 2005-12-14 03:36:22 -0500 (Wed, 14 Dec 2005)
New Revision: 54353
Modified:
trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
trunk/mcs/class/System.XML/Mono.Xml.XPath/XPathEditableDocument.cs
trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog
trunk/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs
trunk/mcs/class/System.XML/System.Xml/ChangeLog
trunk/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
Log:
2005-12-14 Atsushi Enomoto <[EMAIL PROTECTED]>
Added UnderlyingObject support.
Modified: trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog 2005-12-14 08:30:12 UTC
(rev 54352)
+++ trunk/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog 2005-12-14 08:36:22 UTC
(rev 54353)
@@ -1,5 +1,9 @@
2005-12-14 Atsushi Enomoto <[EMAIL PROTECTED]>
+ * XPathEditableDocument.cs : added UnderlyingObject.
+
+2005-12-14 Atsushi Enomoto <[EMAIL PROTECTED]>
+
* XPathEditableDocument.cs : added 2.0 SchemaInfo.
2005-12-13 Atsushi Enomoto <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.XML/Mono.Xml.XPath/XPathEditableDocument.cs
===================================================================
--- trunk/mcs/class/System.XML/Mono.Xml.XPath/XPathEditableDocument.cs
2005-12-14 08:30:12 UTC (rev 54352)
+++ trunk/mcs/class/System.XML/Mono.Xml.XPath/XPathEditableDocument.cs
2005-12-14 08:36:22 UTC (rev 54353)
@@ -483,6 +483,10 @@
get { return navigator.SchemaInfo; }
}
+ public override object UnderlyingObject {
+ get { return navigator.UnderlyingObject; }
+ }
+
public override string Value {
get { return navigator.Value; }
}
Modified: trunk/mcs/class/System.XML/System.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/ChangeLog 2005-12-14 08:30:12 UTC
(rev 54352)
+++ trunk/mcs/class/System.XML/System.Xml/ChangeLog 2005-12-14 08:36:22 UTC
(rev 54353)
@@ -1,5 +1,10 @@
2005-12-14 Atsushi Enomoto <[EMAIL PROTECTED]>
+ * XmlDocumentNavigator.cs : added UnderlyingObject as to behave as
+ documented in MSDN.
+
+2005-12-14 Atsushi Enomoto <[EMAIL PROTECTED]>
+
* XmlNode.cs : under 2.0 xml/xmlns are treated as special cases in
GetNamespaceOfPrefix()/GetPrefixOfNamespace() (but it still does not
implement IXmlNamespaceResolver, bummer).
Modified: trunk/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
2005-12-14 08:30:12 UTC (rev 54352)
+++ trunk/mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
2005-12-14 08:36:22 UTC (rev 54353)
@@ -219,6 +219,10 @@
public override IXmlSchemaInfo SchemaInfo {
get { return NsNode != null ? null : node.SchemaInfo; }
}
+
+ public override object UnderlyingObject {
+ get { return node; }
+ }
#endif
public override string Value {
Modified: trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog 2005-12-14
08:30:12 UTC (rev 54352)
+++ trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog 2005-12-14
08:36:22 UTC (rev 54353)
@@ -1,3 +1,7 @@
+2005-12-14 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * XPathNavigator.cs : UnderlyingObject returns null by default.
+
2005-12-13 Atsushi Enomoto <[EMAIL PROTECTED]>
* XPathNavigator.cs : Reimplemented MoveToFollowing() to avoid
Modified: trunk/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs
2005-12-14 08:30:12 UTC (rev 54352)
+++ trunk/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs
2005-12-14 08:36:22 UTC (rev 54353)
@@ -903,7 +903,6 @@
}
}
- [MonoTODO]
public override bool IsNode {
get { return true; }
}
@@ -955,9 +954,8 @@
}
}
- [MonoTODO]
public virtual object UnderlyingObject {
- get { throw new NotImplementedException (); }
+ get { return null; }
}
public override bool ValueAsBoolean {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches