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(ISurrogateSelector selector, StreamingContext context);
// Public Instance Methods
   public virtual void DoFixups( );
   public virtual object GetObject(long objectID);
   public virtual void RaiseDeserializationEvent( );
   public virtual void RecordArrayElementFixup(long arrayToBeFixed, int[ ] indices, 
        long objectRequired);
   public virtual void RecordArrayElementFixup(long arrayToBeFixed, int index, 
        long objectRequired);
   public virtual void RecordDelayedFixup(long objectToBeFixed, string memberName, 
        long objectRequired);
   public virtual void RecordFixup(long objectToBeFixed, System.Reflection.MemberInfo member, 
        long objectRequired);
   public virtual void RegisterObject(object obj, long objectID);
   public void RegisterObject(object obj, long objectID, SerializationInfo info);
   public void RegisterObject(object obj, long objectID, SerializationInfo info, 
       long idOfContainingObj, System.Reflection.MemberInfo member);
   public void RegisterObject(object obj, long objectID, SerializationInfo info, 
       long idOfContainingObj, System.Reflection.MemberInfo member, 
       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.