Serializing an object graph in .NET and updating a code version

I need to serialize some graphic objects to disk

What difficulties can I encounter if I make changes to the class and then try to deserialize the old version?

Is some serializers better than others?

What is the standard way to handle such a scenario?

For example, in the new version of the code, do I need to save all the old classes, so that when deserializing the old file, I can do this for the old class, and then transfer the data to the new class? Will there be a change to deserialization of namespace / namespace splitting?

Thanks for any advice.

+3
source share
2 answers
+3

, . .NET 1.0, DLL. .

DataContracts WCF : DataContractSerialiser. , , , [OnDeserializing] IExtensibleDataObject.

DataContractSerializer XML .

+1

Source: https://habr.com/ru/post/1748506/


All Articles