1.

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:

  •  The ACCESSIBILITY of the method should be public. It can also be internal with InternalsVisibleTo provided to the System.Runtime.Serialization ASSEMBLY.
  •  Return TYPE should be void.
  •  There should be exactly one parameter which should be of the type StreamingContext.
  •  There should be only one of the FOUR callbacks provided on the method.

The following conditions should be met for a valid OnDeserialized callback:



Discussion

No Comment Found