Question

I am having a problem saving an arraylist of a object I created. I implemented ISerializable and I can manually use Xml.Serialization.XmlSerializer to serialize and deserialize it.

When I add it to my arraylist and use the save method it doesn't save. When I reopen my project my arraylist is null. Even if it had other information that wasn't my object, it will toss all of it out.

To test if it was my object, I threw some strings in the array saves and restarted my program and they were still there. Add my object and save / restart and Null.

Pas de solution correcte

Autres conseils

It is possible, but a little more involved.

Part 1

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top