P
Perecli Manole
I have a class that has been serialized and saved to disk. I am trying to
deserialize it back into the same class which now has an extra private
member. It will not deserialize because its signature has changed so I
added:
Protected Sub New(ByVal info As SerializationInfo, ByVal context As
StreamingContext)
End Sub
to my new class so that I can specify custom deserialization however it does
not get called by the deserialization formatter if I don't specify that the
class implements iSerializable. When I do implement iSerializable in my new
class then the class signature no longer matches the old class so an error
gets raised. Seems like I am stuck. Maybe if I had implemented iSerializable
from the beginning in the old class this might have worked but what should I
do now?
Perry
deserialize it back into the same class which now has an extra private
member. It will not deserialize because its signature has changed so I
added:
Protected Sub New(ByVal info As SerializationInfo, ByVal context As
StreamingContext)
End Sub
to my new class so that I can specify custom deserialization however it does
not get called by the deserialization formatter if I don't specify that the
class implements iSerializable. When I do implement iSerializable in my new
class then the class signature no longer matches the old class so an error
gets raised. Seems like I am stuck. Maybe if I had implemented iSerializable
from the beginning in the old class this might have worked but what should I
do now?
Perry