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.

没有正确的解决方案

其他提示

It is possible, but a little more involved.

Part 1

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top