I recently read the IXmlSerializable interface information on MSDN and was a little confused about the whole end tag thing.
As I understand it, if you are implementing IXmlSerializable then you do not need to write the end tag, but you do need to read it? E.g. the following would error if my class A does not read the end tag
<A>
<i>32</i>
</A>
But what happens if the content is
<A i="32"/>
If I attempt to read the end tag here I get an InvalidOperationException. But if I read on to determine what I'm supposed to be reading is that not going to much up the position of the reader?
I think I'm just getting a little lost, as the code I'm working with gets a bit more complex when I have to deal with IXmlSerializable children (which can be of varying types), and collections of IXmlSerializable elements.