O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required