versioning and BinaryFormatter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tarscher

    versioning and BinaryFormatter

    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
  • =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=

    #2
    RE: versioning and BinaryFormatter

    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.S urrogateSelecto r class and associated
    information.

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

    --
    Ciaran O''Donnell
    try{ Life(); } catch (TooDifficultException) { throw Toys(); }



    "Tarscher" wrote:
    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
    >

    Comment

    Working...