My code:
//object
var obj = new object() { ID = 111, Money = 111};
//this i want serialize/deserialize, this arraylist contains arraylist with objects
ArrayList SerializeArrayListOfArrayList = new ArrayList();
ArrayList array = new ArrayList();
array.Add(obj);
array.Add(obj);
SerializeArrayListOfArrayList.Add(array);
SerializeArrayListOfArrayList.Add(array);
SharpSerializer serializer = new SharpSerializer(false);
serializer.Serialize(SerializeArrayListOfArrayList, "file.xml");
ArrayList arraylist = (ArrayList)serializer.Deserialize("file.xml");
Serialize is ok, but deserialize throws an exception.
Polenter.Serialization.Core.DeserializingException: 'An error occured during the deserialization. Details are in the inner exception.' InnerException InvalidOperationException: Property type is not defined. Property: ""
This I need deserialize with the nuget package SharpSerializer. Only XML serialization. Not .NET XMLSerializer. http://www.sharpserializer.com/en/index.html
I don't know how i can set a property type, does anyone want to help me?
Thx, sorry for my English
UPDATE: every new instance of object
SOLVED THX