Object changed while deserialization
- by neoms21
I'm serializing an object and storing the serialized value in db and getting the deserialization to work fine as well after getting values from db.
But problem occurs if the existing object is modified and a new property is added in the class. Then while deserializing it looks for that property in serialized text and upon not finding it there, I get the following error
System.Runtime.Serialization.SerializationException: Member 'temp' was not found.
Is there any way I can know if new property was not there while serialization and can skip that? I'm using custom serialization.