[Mono-dev] Deserialization and members order by reflection

Vladimir Krasnov vladimirk at mainsoft.com
Tue Nov 15 13:03:39 EST 2005


Hello All,
 
I've found that xml deserialization of objects is depends on fields and
properties order returned by reflection. If, for some reason, the order
of members is different from expected, the deserialization process
fails. For example, members of derived class are shuffled with members
of base class.
 
I've attached the patch for
System.Xml.Serialization.XmlReflectionImporter.cs that fixes this
problem, currently the patch is in TARGET_JVM block only, but if you
approve it, I'll commit it without TARGET_JVM
 
Vladimir Krasnov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051115/22995c7b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XmlReflectionImporter.patch
Type: application/octet-stream
Size: 1786 bytes
Desc: XmlReflectionImporter.patch
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051115/22995c7b/attachment.obj 


More information about the Mono-devel-list mailing list