When I renamed a class I am getting a deserialization error. How to fix it?

Posted by Fred F. on Stack Overflow See other posts from Stack Overflow or by Fred F.
Published on 2010-04-02T19:12:06Z Indexed on 2010/04/02 19:13 UTC
Read the original article Hit count: 165

Filed under:
|
|
|

I renamed the class classBattle to Game and not I get "Unable to load type battle.classBattle+udtCartesian required for deserialization."

This is the line of code MapSize = (Game.udtCartesian)formatter.Deserialize(fs);

How do I fix this? Does this mean I cannot rename classes?

© Stack Overflow or respective owner

Related posts about deserialization

Related posts about winforms