Frage

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.

Keine korrekte Lösung

Andere Tipps

It is possible, but a little more involved.

Part 1

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top