ISerializable and backward compatibility

前端 未结 5 1857
我寻月下人不归
我寻月下人不归 2021-01-05 14:30

I have to work an an old application that used binaryFormatter to serialize application data into filestream (say in a file named \"data.oldformat\") without any optimizazio

5条回答
  •  醉酒成梦
    2021-01-05 15:16

    Your previous code should work. Do you get an exception? Try to use new constructor:

     Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)
    

提交回复
热议问题