OnSerializingAttribute
When applied to a method, specifies that the method is during serialization of an object in an object graph. The order of serialization relative to other objects in the graph is non-deterministic.
public OnSerializingAttribute()
Initializes a new instance of the OnSerializingAttribute class.