Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2009-03-18 09:36:24 +0300
committerAtsushi Eno <atsushieno@gmail.com>2009-03-18 09:36:24 +0300
commit87dcaba14c5e299c4bef109ae089802f7187440e (patch)
tree7fa681ec57088b80c68078534c4b47f42cfe1124 /mcs/class/System.XML/System.Xml
parent729e866f15a61b5f187c642f46e8668164160768 (diff)
2009-03-18 Atsushi Enomoto <atsushi@ximian.com>
* XmlReader.cs : handle DateTimeOffset in typed reader methods. svn path=/trunk/mcs/; revision=129672
Diffstat (limited to 'mcs/class/System.XML/System.Xml')
-rw-r--r--mcs/class/System.XML/System.Xml/ChangeLog4
-rw-r--r--mcs/class/System.XML/System.Xml/XmlReader.cs2
2 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog
index 0314c3d5fea..cf9ef04b760 100644
--- a/mcs/class/System.XML/System.Xml/ChangeLog
+++ b/mcs/class/System.XML/System.Xml/ChangeLog
@@ -1,3 +1,7 @@
+2009-03-18 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlReader.cs : handle DateTimeOffset in typed reader methods.
+
2009-03-17 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextWriter2.cs : some weird TextWriter has null Encoding.
diff --git a/mcs/class/System.XML/System.Xml/XmlReader.cs b/mcs/class/System.XML/System.Xml/XmlReader.cs
index be79daf9b71..2edc941dae3 100644
--- a/mcs/class/System.XML/System.Xml/XmlReader.cs
+++ b/mcs/class/System.XML/System.Xml/XmlReader.cs
@@ -993,6 +993,8 @@ namespace System.Xml
else
return XmlQualifiedName.Parse (text, this);
}
+ if (type == typeof (DateTimeOffset))
+ return XmlConvert.ToDateTimeOffset (text);
switch (Type.GetTypeCode (type)) {
case TypeCode.Boolean: