[mono-android] XML Serialization
Jonathan Pryor
jpryor at novell.com
Tue Mar 22 21:25:31 EDT 2011
On Mar 22, 2011, at 5:20 PM, Aaron Knabb wrote:
> I've been having a hell of a time getting Xml Serialization to work. Upon deserialization, nested objects don't seem to get any of their properties populated. Is this supposed to work in preview 14?
Is the same process/package doing the serialization and deserialization?
If so, then please file a bug with a test case.
If not (e.g. you have a desktop app doing the serialization and then you're reading on Android), then it's possible that the linker is removing the members that the serialized XML is referring to, which would cause problems on deserialization. The fix for this would be to use the [Android.Runtime.PreserveAttribute] on the type and/or members so that the linker doesn't remove them.
- Jon
More information about the Monodroid
mailing list