[Mono-dev] Deserialization and members order by reflection

Lluis Sanchez lluis at ximian.com
Tue Nov 15 13:34:48 EST 2005


Hi,

Deserialization should not depend on order of members. If something
fails, please file a bug report with a test case. The order we are
currently using mimics the order used by MS.NET, and this should not
change.

Thanks!
Lluis.

El mar, 15-11-2005 a las 10:03 -0800, Vladimir Krasnov escribió:
> 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
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list