开发者

Deserializing a type moved to another assembly

We decided to split an assembly into two assemblies. We did and learned that now we cannot deserialize objects graphs that expect types in the aplit assembly (we still have the types but they, we moved from assembly A to assembly A.A or A.B. We use .net binary serialization. Is there a way of opening t开发者_Python百科he serialized stuff?

Thanks.


Create a custom serialization binder that your formatter uses. In that class you implement the assembly and class resolution from the old class/assembly names.

http://msdn.microsoft.com/en-us/library/system.runtime.serialization.serializationbinder.aspx

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜