开发者

how to load c# object side by side

开发者 https://www.devze.com 2022-12-31 00:21 出处:网络
We have serialized value 开发者_运维技巧of some objects persisted. Now we want to make substantial changes to some objects.

We have serialized value 开发者_运维技巧of some objects persisted. Now we want to make substantial changes to some objects.

So what i want to do is load older version of object using old assembly then deserialize and serialize again with newer version of the object. I can have convert method which can transform old object to new one.

i have been converting object on fly on deserializer but in this case it's almost new object with same name.


So you just need a one time conversion, right? How about using XmlSerializer as the intermediate?

0

精彩评论

暂无评论...
验证码 换一张
取 消