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.
 
Back
Top