[Mono-bugs] [Bug 615801] DataContractJsonSerializer does not set class members to null
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jul 6 05:06:22 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=615801
http://bugzilla.novell.com/show_bug.cgi?id=615801#c1
--- Comment #1 from Atsushi Enomoto <aenomoto at novell.com> 2010-07-06 09:06:21 UTC ---
An actual test case should make description simpler:
using System;
using System.IO;
using System.Runtime.Serialization.Json;
using System.ServiceModel;
using System.Text;
using System.Xml;
public class Test
{
public static void Main ()
{
var ds = new DataContractJsonSerializer (typeof (ClassA));
var stream = new MemoryStream ();
var a = new ClassA ();
ds.WriteObject (stream, a);
stream.Position = 0;
a = (ClassA) ds.ReadObject (stream);
Console.WriteLine (a.B);
}
}
public class ClassA { public ClassB B { get; set; } }
public class ClassB {}
--
Configure bugmail: http://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