ReadXML not being called when implementing IXmlSerializable

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I have an object model which includes a Dictionary<> property which I am
trying to serialize/deserialize using IXmlSerializable as follows

class X:IDictionary<a,b>,IXmlSerializable)

What is happening is that the objects get persisted fine (checked using
notepad) and I can step through the WriteXml routine using the debugger.
However when trying to deserialize, my ReadXml routine is just not being
called - break points in the debugger are never being hit. The bizarre thing
is I have two such collections implemented pretty much identically and one
works and one doesn't!

Can anyone give me any pointers as to what the problem might be.

Thanks

Marek
 

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