Why does the OnDeserialization not fire for XML Deserialization?

There's no equivalent of OnDeserialized for XML deserialization.

There's no equivalent of OnDeserialized for XML deserialization. See this post for workarounds: stackoverflow.com/questions/1266547/how-....

Darn. That's very annoying. Oh well.

I have added a workaround involving a field which gets unset when I deserialize, and set again when the internal state is good. – Jonathan May 24 '10 at 13:17.

The only way you could do that in a graceful way is to manually implement IXmlSerializable, which is not fun. Simply; XmlSerializer doesn't support serialization callbacks. Sometimes, though, you can switch to DataContractSerializer, which still offers xml capabilities but which does support serialization callbacks.

Unfortunately the xml options are limited - it won't work for you xml structure, since that uses attributes (DataContractSerializer only supports elements). You might also look at the comments on this answer, which discusses the points from this.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions