Created attachment 3154 [details]
Console Test Project to show the problem
I have included a sample project to show this bug, it runs fine on .NET and Mono runtimes on windows machine but on MonoTouch and Mono on Mac OS X, the xml is not properly deserialized. three items are expected but only one item is contained in the resulting object.
Lluis, could you take a quick look at this one?
It is a bug in the code that handles the ordering of elements. As a workaround, remove all the initialization of the Order property in the XmlElement attributes. For example, instead of:
[System.Xml.Serialization.XmlElementAttribute("Directory", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
You have to remove them all.
I'm working on a fix.
The bug has been fixed in master (d3fdb925ecab42de1caae607180e9ad928a1a907) and 2.10 branch (08021a9a73fd865a523f76a2c1b003072aaeb56f).
Thank you Lluis!
We are bringing the fix to the both iOS and Android.
Thanks for the quick fix guys!