D
Dennis C. Drumm
I have a strong named Windows Form application that save and opens files
using a BinaryFormatter. The formatter is set to
FormatterAssemblyStyle.Simple and I use the IFormatter interface to
serialize and deserialize the stream.
The problem comes when I need to change the structure of the object that is
serialized. Thereafter, I need to devise a way to open the old document
formats and convert them to the new format.
I can do that, but I need a way to determine what version of file I'm
opening so that I can use the proper deserialze object. Is there a way to
access the assembly version a binary streaming file was created with? Or,
alternatively, is the a versioning number that can be saved with this type
of file that can be used for that purpose at a later date?
Thanks,
Dennis
using a BinaryFormatter. The formatter is set to
FormatterAssemblyStyle.Simple and I use the IFormatter interface to
serialize and deserialize the stream.
The problem comes when I need to change the structure of the object that is
serialized. Thereafter, I need to devise a way to open the old document
formats and convert them to the new format.
I can do that, but I need a way to determine what version of file I'm
opening so that I can use the proper deserialze object. Is there a way to
access the assembly version a binary streaming file was created with? Or,
alternatively, is the a versioning number that can be saved with this type
of file that can be used for that purpose at a later date?
Thanks,
Dennis