Object changed while deserialization
Posted
by neoms21
on Stack Overflow
See other posts from Stack Overflow
or by neoms21
Published on 2010-05-05T14:48:04Z
Indexed on
2010/05/05
14:58 UTC
Read the original article
Hit count: 200
.NET
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.
© Stack Overflow or respective owner