This project has moved and is read-only. For the latest updates, please go here.

Serialization Callbacks On Property Instances?

Jan 4, 2011 at 7:09 PM

Is there support for serialization callbacks being invoked on object instances which are the properties of the object being deserialized?

For example if I have a class A with a property of type B  (or a collection of type B) and B has serialization callbacks (e.g. OnDeserialized), is there a way to get the serialization callbacks to fire on the instances of B that are created when I deserialize an instance of A?  

I happen to be working on a WP7 app and am currently using the DataContractJsonSerializer which does support this behavior.  I'd like to switch to Json.NET for performance reasons (among others) but at first pass it appears this scenario isn't supported...   Let me know if I'm missing something.