versioning and BinaryFormatter

  • Thread starter Thread starter Tarscher
  • Start date Start date
T

Tarscher

Hi all,

i want to save my application to a file with a BinaryFormatter . I
have some questions how the BinaryFormatter will work when the I
update my application. How can I make sure that I can still read older
saved files.

I looked for a tutorial but can't seem to find one. Someone has
experience with BinaryFormatter and versioning?

Thanks,
Stijn
 
You need to ensure that you can reload the old objects into the newer
versions. This is quite complex with Binary serialization. You need to lookup
serialization surrogates. check out
System.Runtime.Serialization.SurrogateSelector class and associated
information.

Let me know if you still need help as I have old code samples somewhere
using them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top