diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2007-11-29 20:20:54 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2007-11-29 20:20:54 +0300 |
commit | 2ef590022e3ec6a35452c2a67ad3e9cc236cc9dc (patch) | |
tree | 1b72a728580b21478f0eb3dfe7018f8a906dd77a /mcs/class/System.XML/System.Xml.XPath | |
parent | e03203e6164794bc9c7a6ca324f978ea6a362581 (diff) |
2007-11-29 Atsushi Enomoto <atsushi@ximian.com>
* XPathNavigator.cs : implemented ValueAs().
* XPathNavigatorTests.cs : added ValueAs() test.
svn path=/trunk/mcs/; revision=90443
Diffstat (limited to 'mcs/class/System.XML/System.Xml.XPath')
-rw-r--r-- | mcs/class/System.XML/System.Xml.XPath/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/mcs/class/System.XML/System.Xml.XPath/ChangeLog b/mcs/class/System.XML/System.Xml.XPath/ChangeLog index 13d382dd6b8..433183d1cb9 100644 --- a/mcs/class/System.XML/System.Xml.XPath/ChangeLog +++ b/mcs/class/System.XML/System.Xml.XPath/ChangeLog @@ -1,3 +1,7 @@ +2007-11-29 Atsushi Enomoto <atsushi@ximian.com> + + * XPathNavigator.cs : implemented ValueAs(). + 2007-01-30 Atsushi Enomoto <atsushi@ximian.com> * Expression.cs : typo. Close #80669 diff --git a/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs b/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs index 23ac485e5a6..0e095883abc 100644 --- a/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs +++ b/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs @@ -867,10 +867,10 @@ namespace System.Xml.XPath return null; } - [MonoTODO] + // it is not very effective code but should just work public override object ValueAs (Type type, IXmlNamespaceResolver nsResolver) { - throw new NotImplementedException (); + return new XmlAtomicValue (Value, XmlSchemaSimpleType.XsString).ValueAs (type, nsResolver); } public virtual void WriteSubtree (XmlWriter writer) |