<PackageReference Include="System.Runtime.Serialization.Formatters" Version="11.0.0-rc.3.26522.148" />

System.Runtime.Serialization.ObjectManager

public class ObjectManager
Keeps track of objects as they are deserialized.

Initializes a new instance of the ObjectManager class.

public virtual void DoFixups()

Performs all the recorded fixups.

public virtual object GetObject(long objectID)

Returns the object with the specified object ID.

public virtual void RaiseDeserializationEvent()

Raises the deserialization event to any registered object that implements IDeserializationCallback.

public void RaiseOnDeserializingEvent(object obj)

Invokes the method marked with the OnDeserializingAttribute.

public virtual void RecordArrayElementFixup(long arrayToBeFixed, int index, long objectRequired)

Records a fixup for one element in an array.

public virtual void RecordArrayElementFixup(long arrayToBeFixed, int[] indices, long objectRequired)

Records fixups for the specified elements in an array, to be executed later.

public virtual void RecordDelayedFixup(long objectToBeFixed, string memberName, long objectRequired)

Records a fixup for an object member, to be executed later.

public virtual void RecordFixup(long objectToBeFixed, MemberInfo member, long objectRequired)

Records a fixup for a member of an object, to be executed later.

public virtual void RegisterObject(object obj, long objectID)

Registers an object as it is deserialized, associating it with objectID.

public void RegisterObject(object obj, long objectID, SerializationInfo info)

Registers an object as it is deserialized, associating it with objectID, and recording the SerializationInfo used with it.

public void RegisterObject(object obj, long objectID, SerializationInfo info, long idOfContainingObj, MemberInfo member)

Registers a member of an object as it is deserialized, associating it with objectID, and recording the SerializationInfo.

public void RegisterObject(object obj, long objectID, SerializationInfo info, long idOfContainingObj, MemberInfo member, int[] arrayIndex)

Registers a member of an array contained in an object while it is deserialized, associating it with objectID, and recording the SerializationInfo.