Bug 59178 - XmlSerializer not compatible with .NET
Summary: XmlSerializer not compatible with .NET
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.XML (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: Future Release
Assignee: Bugzilla
Depends on:
Reported: 2017-09-01 14:20 UTC by jeroen.bernsen
Modified: 2017-09-11 10:42 UTC (History)
2 users (show)

See Also:
Is this bug a regression?: ---
Last known good build:

Solution to reproduce (301.86 KB, application/x-zip-compressed)
2017-09-01 14:20 UTC, jeroen.bernsen

Description jeroen.bernsen 2017-09-01 14:20:48 UTC
Created attachment 24524 [details]
Solution to reproduce

I included a simplified solution with XML Deserialization unit tests that succeed on UWP but fail on Android and iOS.

It seems that if there are [XmlElementAttribute(Order = 0)] attributes on both base and derived classes that the order is interpreted different on Mono vs .NET. This is especially a problem since we have large generated files with types for Serialization.

So the order is different for serialization and deserialization

Note You need to log in before you can comment on or make changes to this bug.