? am working on a small c# project at visual studio 2010 and ? was trying to serialize an arraylist which has my object of People class. here is my code block
FileStream fs = new FileStream("fs.xml", FileMode.OpenOrCreate, FileAccess.Write);
XmlSerializer xml = new XmlSerializer(typeof(ArrayList));
xml.Serialize(fs,this.array);
and I have an error message at last line that is "There was an error generating the XML document." can anyone help me put please?
See Question&Answers more detail:os