Serialization & Reflection

  • Thread starter Thread starter info
  • Start date Start date
I

info

Hi All,

Do you know that if you serialize, through the automatic .NET
serialization mechanism, a class from an assembly named One and try to
restore it from the same assembly renamed to Two you get an exception?

The reason is quite obvious but I am trying to work around to this
issue.

I mean, if one day I will change the name to one of my DLL the
customers will never be able to deserialize their files?

How can I avoid this?

Thanks a lot,

Alberto
 
Hi All,

Do you know that if you serialize, through the automatic .NET
serialization mechanism, a class from an assembly named One and try to
restore it from the same assembly renamed to Two you get an exception?

The reason is quite obvious but I am trying to work around to this
issue.

I mean, if one day I will change the name to one of my DLL the
customers will never be able to deserialize their files?

How can I avoid this?

Thanks a lot,

Alberto

Are you using XML serialization?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top