Bug 13170 - XmlSerializer can not serialize an IList property
Summary: XmlSerializer can not serialize an IList property
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.XML ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: marcos.henrich
URL:
Depends on:
Blocks:
 
Reported: 2013-07-11 05:01 UTC by Rutger Poiesz
Modified: 2014-09-01 05:36 UTC (History)
2 users (show)

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


Attachments
Example to reproduce (4.52 MB, application/x-zip-compressed)
2013-07-11 05:01 UTC, Rutger Poiesz
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Rutger Poiesz 2013-07-11 05:01:46 UTC
Created attachment 4313 [details]
Example to reproduce

The XmlSerializer used from a Xamarin.Android application does not support serialization of an IList property, the xmlserializer throws the following exception: 

To be XML serializable, types which inherit from ICollection must have an implementation of Add(System.String) at all levels of their inheritance hierarchy. System.Collections.Generic.IList`1[[System.String, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] does not implement Add(System.String).

The .Net Framework XmlSerializer has no problems with serializing an IList property.

With the attachment it's possible to reproduce this bug.
Comment 1 marcos.henrich 2014-09-01 05:36:23 UTC
Hi Rutger,

Thank you for the detailed bug report.

This issue is fixed in Mono 3.6.