You need to serialize the object, and it is possible that the version of the assembly changed during deserialization. In addition, it may happen that the object changes slightly.
XmlSerializer does not store type information, and if the object changes a little, it just doesn't crash, but XmlSerializer cannot serialize private or internal properties from a superclass that I cannot mark with attributes. So I looked at the DataContractSerializer. It looks like this because the problem with the private / internal properties of the superclass will be solved, all properties should be checked, and I don't need them, but what about the type information? And how does a DataContractSerializer behave if some properties are deleted, renamed, or added?
Enyra source share