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?

Windows Phone Interview Question
Windows Phone Interview Question

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.

Download Windows Phone Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me is there an API for retrieving information on the files located in the store? I am looking to check when it was last written?Can you please explain the best way to detect that I am in design-mode in Expression Blend or Visual Studio?