Xml Serialization of Custom Collections deriving from CollectionBase.
Hi,
I have seen several posts on the net on the following issue of xml serialization of custom collection classes deriving from CollectionBase.
"you must implement a default accessor on AccountCollection because it inherits from ICollection”.
System.InvalidOperationException: You must implement adefaultaccessor on
MyNamespace.MyClassList because it inherits fromICollection
http://www.dotnet247.com/247reference/msgs/5/27024.aspx
http://www.topxml.com/ASPNET-Webservices/rn-245057_ICollection-default-accessor.aspx
And the obivous answer for all these problems is implementing the "default accessor" for your custom class. But no where I could find details on, why does the xmlserializer need a default acceessor implementation.
I would like to know the working of xmlserailizer when serailizing the custom collection, and why and how it uses the deault accessor for serailization.
Thanks in advance,
Laxmi.

