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