[Mono-bugs] [Bug 78214][Nor] Changed - [PATCH] XML Serialization fixes for default values

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed May 3 06:57:59 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 gert.driesen at pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=78214

--- shadow/78214	2006-05-03 06:42:07.000000000 -0400
+++ shadow/78214.tmp.5938	2006-05-03 06:57:59.000000000 -0400
@@ -62,6 +62,17 @@
 
 ------- Additional Comments From lluis at ximian.com  2006-05-03 06:42 -------
 I don't like this change that converts default enum values to string
 and then reparses it every time it needs to be written or read.
 Doesn't it make more sense to just store it as an enum object value?
 
+
+------- Additional Comments From gert.driesen at pandora.be  2006-05-03 06:57 -------
+No, because you only have named constants if you, for example, import 
+a typemapping from an XML Schema (using XmlSchemaImporter).
+
+In that case you cannot store the default value as the enum object 
+value, as the default value in the XSD will just be a whitespace-
+delimited list of named constants.
+
+I have test cases for this in the patch for bug #78221 (eg. 
+ImportTypeMapping_OptionalValueTypeContainer test).


More information about the mono-bugs mailing list