Method OnBeforeSerialize OnBeforeSerialize() Implementation of ISerializationCallbackReceiver interface, used to convert data to a serializable form. Declaration public void OnBeforeSerialize() Implements ISerializationCallbackReceiver.OnBeforeSerialize()