2009-03-18 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Wed, 18 Mar 2009 06:36:24 +0000 (06:36 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Wed, 18 Mar 2009 06:36:24 +0000 (06:36 -0000)
* XmlReader.cs : handle DateTimeOffset in typed reader methods.

svn path=/trunk/mcs/; revision=129672

mcs/class/System.XML/System.Xml/ChangeLog
mcs/class/System.XML/System.Xml/XmlReader.cs

index 0314c3d5fea6747a30a392e2de039827cfd5661f..cf9ef04b7608638cb7fcdd7c42de96e46c0be29e 100644 (file)
@@ -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.
index be79daf9b71e5d101d5f3bf2d64e3e17087df507..2edc941dae3b56300e363b233e1ce7f6edd90a40 100644 (file)
@@ -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: