[Mono-bugs] [Bug 79278][Min] Changed - XmlSerializer requires default public constructor on Mono, but not on MS.NET
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Sep 13 17:40:41 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by juraj at hotfeet.ch.
http://bugzilla.ximian.com/show_bug.cgi?id=79278
--- shadow/79278 2006-09-04 18:29:15.000000000 -0400
+++ shadow/79278.tmp.8681 2006-09-13 17:40:41.000000000 -0400
@@ -114,6 +114,22 @@
x = new XmlSerializer (data.GetType ());
TextReader r = new StringReader (b.ToString());
return (T) x.Deserialize (r);
}
}
+
+------- Additional Comments From juraj at hotfeet.ch 2006-09-13 17:40 -------
+Searching for "private default constructor c#" with Google seems to
+imply that there is such a thing:
+
+http://msdn.microsoft.com/msdnmag/issues/03/02/CQA/
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconConstructorUsageGuidelines.asp
+
+But even if is doesn't exist, I think it still makes sense to follow
+MS.NET's behaviour for the sake of compability.
+
+I'm working together with .NET developers who use MS.NET and their
+code doesn't run on Mono because of this difference. I'm not trying to
+deserialize something on Mono which was serialized on MS.NET (of the
+other way around), but just serializing and deserializing data
+structures from scratch.
More information about the mono-bugs
mailing list