OnSerializing(T)abstractpublic abstract void OnSerializing(T value) Called when serializing. ParametersvalueTThe value.