|
-
March 4th, 2014, 01:26 PM
#3
Re: DeSearialize - class has moved from assamby A to assambly B
I cant change to xmlFormater because I have already serialized things. I try to explain it in another way:
* I serialized Class "StayedClass" whitch has a member called "Moved" which is of the type "AssamblyA.MovedClass" using BinaryFormatter
* then I created a new Assambly: "AssamblyB"
* I moved "MovedClass" to the new Assambly and changed its namespace. The type is now "AssamblyB.MovedClass"
* After some time I try to read some files which were created in the first step. But It did not work because GetValue does not recognice that "AssamblyA.MovedClass" is the same class as "AssamblyB.MovedClass" and throws an exception
So I need a way to tell c# that "AssamblyA.MovedClass" in now known as "AssamblyB.MovedClass"
Last edited by Gener4tor; March 4th, 2014 at 01:37 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|