XmlDeserialize when object changes? -
04-08-2004
, 11:51 AM
I have an object that is being serialized via the XmlSerializer and
stored in a database in xml format. Since initial creation, some of
the properties of the object have changed (I have removed a few items
that were initially in this object and put them into a separate
object). The XmlDeserialize() method now is breaking, and my hunch is
because I have removed a few of the properties of the object? For
instance, there is data in the database that has an xml serialized
property like
<ReviewedById>
Some one
</ReviewedById>
However, this is one of the properties that has now moved to a
different object. Do I need to keep that property in this object in
order to not break it? I'd rather not, but I'm unclear how
xmlSerialization works when objects change over time. Can someone
clarify? Are my suspicions correct?
Thanks,
Bryan Ax |