ObjectManager

ObjectManager

System.Runtime.Serialization (mscorlib.dll) class

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   ); } 


C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net