how to load c# object side by side
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?
精彩评论