PostSharp5.0//API Reference/Post­Sharp.​Serialization Namespace/ISerialization­Callback Interface

ISerializationCallback Interface

Interface that can be implemented by serializable classes. It defines methods OnDeserialized() and OnSerializing() called during serialization.

Namespace:  PostSharp.Serialization
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public interface ISerializationCallback

The ISerializationCallback type exposes the following members.

Methods
  NameDescription
Public methodOnDeserialized
Method called after the object has been deserialized.
Public methodOnSerializing
Method called before the object is being serialized.
See Also