Windows Phone (WP) Question:
Download Job Interview Questions and Answers PDF
Tell me in my code the method marked by [OnDeserialized] is never called after deserialization. Is this a known issue?
Answer:
The following conditions should be met for a valid OnDeserialized callback.
1. The accessibility of the method should be public. It can also be internal with InternalsVisibleTo provided to the System.Runtime.Serialization assembly.
2. Return type should be void.
3. There should be exactly one parameter which should be of the type StreamingContext.
4. There should be only one of the four callbacks provided on the method.
1. The accessibility of the method should be public. It can also be internal with InternalsVisibleTo provided to the System.Runtime.Serialization assembly.
2. Return type should be void.
3. There should be exactly one parameter which should be of the type StreamingContext.
4. There should be only one of the four callbacks provided on the method.
Download Windows Phone Interview Questions And Answers
PDF