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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top