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?
 
Back
Top