Desserialize a Custom Class that had its structure changed
Posted on 2010-09-22
Suppose that I have a Class that defines a Product in my catalog. This class have 2 attributes: Product_Code and Product_Description, both as string.
A instance of this class was serialized as XML and saved to the disk.
Now, suppose that a new attribute, called Product_Supplier was added to the class. What will happen if I try to deserialize the XML file that was previously saved? Is there a way to perform this action sucessfully, including when attributes are deleted or have it's names changed?
Thanks a lot.