serialization

  • Thread starter Thread starter Ivan A. Gavrilyuk
  • Start date Start date
I

Ivan A. Gavrilyuk

Hi

Why i can't serialize ArrayList of my own classes using XmlSerializer? I get
error "Error generating XML document".

Thanks.
 
I belive that the problem is based around the fact that ArrayList uses
objects, so it is having a hard type determining what type of object it
contains using reflection. Have a look at XmlIncludeAttribute in MSDN, you
may be able to use this.

Chris
 
Back
Top