U
Urs Vogel
Hi
Let's assume that I have an object_V1 (version 1) serialized to disk. Later,
the class for object_V1 will change to object_V2, having some more members.
Now, I would like to read my previously saved objects of type object_V1 into
object_V2, which (logically) now throws an exception.
I tried to make use of the HeaderHandler, but this gives me only access to
the methods, not the members. I also tried to inherit object_V1 into
object_V2, which didn't work either.
Is there an way to control this deserialization process, any samples around?
Any hints ar appreciated.
Thanks. Urs.
Let's assume that I have an object_V1 (version 1) serialized to disk. Later,
the class for object_V1 will change to object_V2, having some more members.
Now, I would like to read my previously saved objects of type object_V1 into
object_V2, which (logically) now throws an exception.
I tried to make use of the HeaderHandler, but this gives me only access to
the methods, not the members. I also tried to inherit object_V1 into
object_V2, which didn't work either.
Is there an way to control this deserialization process, any samples around?
Any hints ar appreciated.
Thanks. Urs.