[Mono-bugs] [Bug 676454] DateTimeOffset not serializing correctly
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Mar 7 02:50:30 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=676454
https://bugzilla.novell.com/show_bug.cgi?id=676454#c2
Atsushi Enomoto <aenomoto at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Atsushi Enomoto <aenomoto at novell.com> 2011-03-07 07:50:29 UTC ---
Fixed in git master (94c253c) and mono-2-10 (c6fb9f9).
For future reference, here is what I wrote for a repro for this kind of
serialization bug (instead of a set of moonlight project files that involves
bunch of extraneous stuff):
using System;
using System.IO;
using System.Runtime.Serialization;
using System.Xml;
using System.Xml.Serialization;
public class Test
{
public static void Main ()
{
var ds = new DataContractSerializer (typeof (DateTimeOffset));
var sw = new StringWriter ();
using (var xw = XmlWriter.Create (sw)) {
ds.WriteObject (xw, DateTimeOffset.Now);
}
Console.WriteLine (sw);
Console.WriteLine (ds.ReadObject (XmlReader.Create (new StringReader
(sw.ToString ()))));
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list