[Mono-bugs] [Bug 78207][Nor] Changed - [PATCH] Members should not
be initialized with defaults on deserialization
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue May 2 13:20:37 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 lluis at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78207
--- shadow/78207 2006-04-26 09:14:52.000000000 -0400
+++ shadow/78207.tmp.7035 2006-05-02 13:20:36.000000000 -0400
@@ -32,6 +32,17 @@
Let me know if it's ok to commit.
------- Additional Comments From gert.driesen at pandora.be 2006-04-26 09:14 -------
Created an attachment (id=16840)
Fixes and unit tests.
+
+------- Additional Comments From lluis at ximian.com 2006-05-02 13:20 -------
+About serializing literal enum values, I wonder if your solution will
+work if the value is an integer for which there isn't an enum field.
+Maybe a more simple solution would be to just return:
+
+"(" + ob.GetType ().FullName + ")" + (int)ob
+
+or something like this.
+
+Other than that, the patch looks ok to commit. Thanks!
More information about the mono-bugs
mailing list