We use binary serialization for persisting some of the data of our application. Now, after some refactoring (assembly names and namespaces changed) has been done, we ran into problems with deserialization of previously (before refactoring) persisted data.
Has someone found a working solution how to migrate the binary data without manipulating it at file level?
As far as I have seen, assembly name and the full qualified type names are stored in the serialized files.
I have some ideas, e.g. building a small app that binds both versions of the assembly where the serialized types are stored in. On one side I would deserialize the persisted data using the old version, then transform the objects to the new definition (via reflection) and serialize them again.
Probably someone has a solution that is more simple to implement...
Thanks,
Daniel
Has someone found a working solution how to migrate the binary data without manipulating it at file level?
As far as I have seen, assembly name and the full qualified type names are stored in the serialized files.
I have some ideas, e.g. building a small app that binds both versions of the assembly where the serialized types are stored in. On one side I would deserialize the persisted data using the old version, then transform the objects to the new definition (via reflection) and serialize them again.
Probably someone has a solution that is more simple to implement...
Thanks,
Daniel