L
Lei Jiang
I use serialization(binary or SOAP) to save my data. When I change my data
format(add a field to the object for example), a exception will throw that
states that the version of the object might be wrong. Could serialization
support a more flexible manner : If I remove a field from the object, the
field will be ignored when loading data previously saved; If I add a field
to a object, the field will be the default value when loading data
previously saved. It could have a switch to turn this feature on or off.
Could anyone tell me a good way to handle this in this version of .NET? The
format of the object sometimes have to change during development.
format(add a field to the object for example), a exception will throw that
states that the version of the object might be wrong. Could serialization
support a more flexible manner : If I remove a field from the object, the
field will be ignored when loading data previously saved; If I add a field
to a object, the field will be the default value when loading data
previously saved. It could have a switch to turn this feature on or off.
Could anyone tell me a good way to handle this in this version of .NET? The
format of the object sometimes have to change during development.