Name
ObjectManager
Synopsis
This class is used by a formatter
to manage object
references during deserialization. Objects in the stream can refer to
already deserialized objects. This causes the formatter to ask the
ObjectManager
to complete the reference after the
deserialization is completed (i.e., on
“fixup”).
public class ObjectManager { // Public Constructors public ObjectManager(ISurrogateSelectorselector
, StreamingContextcontext
); // Public Instance Methods public virtual void DoFixups( ); public virtual object GetObject(longobjectID
); public virtual void RaiseDeserializationEvent( ); public virtual void RecordArrayElementFixup(longarrayToBeFixed
, int[ ]indices
, longobjectRequired
); public virtual void RecordArrayElementFixup(longarrayToBeFixed
, intindex
, longobjectRequired
); public virtual void RecordDelayedFixup(longobjectToBeFixed
, stringmemberName
, longobjectRequired
); public virtual void RecordFixup(longobjectToBeFixed
, System.Reflection.MemberInfomember
, longobjectRequired
); public virtual void RegisterObject(objectobj
, longobjectID
); public void RegisterObject(objectobj
, longobjectID
, SerializationInfoinfo
); public void RegisterObject(objectobj
, longobjectID
, SerializationInfoinfo
, longidOfContainingObj
, System.Reflection.MemberInfomember
); public void RegisterObject(objectobj
, longobjectID
, SerializationInfoinfo
, longidOfContainingObj
, System.Reflection.MemberInfomember
, int[ ]arrayIndex
); }
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.