Serializing multiple but equal objects...

  • Thread starter Thread starter Jacob
  • Start date Start date
J

Jacob

I've had great success with the XmlSerializer but ran into a new problem.
Say I have "classA" with a reference to "myObject" and "classB" with a
reference to "myObject" ... it appears that the one "myObject" gets
serialized as two separate objects. And consequently, when you deserialized
"classA" and "classB" the two "myObjects" are not equal.


How can I serialize a class so that any references to the same object, are
deserialized the same, referencing only one object?


Thanks,
Jacob
 

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