Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

In my code the method marked by [OnDeserialized] is never called after deserialization. Is this a known issue?

0
10 Posted

In my code the method marked by [OnDeserialized] is never called after deserialization. Is this a known issue?

0
10

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123