<PackageReference Include="System.Runtime.Serialization.Formatters" Version="11.0.0-preview.3.26207.106" />

System.Runtime.Serialization.SerializationObjectManager

public sealed class SerializationObjectManager
Manages serialization processes at run time. This class cannot be inherited.

Initializes a new instance of the SerializationObjectManager class.

public void RaiseOnSerializedEvent()

Invokes the OnSerializing callback event if the type of the object has one; and registers the object for raising the OnSerialized event if the type of the object has one.

public void RegisterObject(object obj)

Registers the object upon which events will be raised.