Suppose I had this class:
[Serializable] public class SomeClass { public SomeClass() {
This class gets serialized when the application closes and receives deserialization in the next run.
Then I built it and released the application, and now the class has changed:
[Serializable] public class SomeClass { public SomeClass() {
Is there a way to set the default property when deserializing if it is not found in the old serialized object?
One of the ways I thought was to save the old version of the class, and then check the version that was serialized, and then loop the properties of the old object and set them in the new object, but that doesn't make sense to me, any other solution that has meaning?
source share