Method OnBeforeSerialize OnBeforeSerialize() Serialization callback Declaration public void OnBeforeSerialize() Implements ISerializationCallbackReceiver.OnBeforeSerialize()