문제

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