This project is read-only.

Updating / changing types & deserialization

Sep 4, 2011 at 2:28 PM

Hello,

First off, thanks for sharpSerializer. I'm using it in a WP7 project and I think it's amazingly fast and easy to use. I'm very grateful to have it.

Second, I have a need to change a class (adding properties only) that someone might have serialized as the older version. When the user updates the application and deserialization occurs into the updated type, is that expected to work? Is there any "gotchas" I need to look out for?

Thanks again!

Sep 7, 2011 at 10:43 PM

hi Gary, there are no gotchas. During deserialization the object will be created with its default constructor. are there any properties serialized, they will be updated with their serialized values. All not serialized properties (the new ones) remain their default values.