Serialization & Reflection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • info@devdept.com

    Serialization & Reflection

    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

  • John Bailo

    #2
    Re: Serialization & Reflection

    info@devdept.co m wrote:
    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?

    Comment

    • info@devdept.com

      #3
      Re: Serialization & Reflection

      No, I am using binaryFormatter

      Comment

      Working...