public DelayedReleaseObject(DelayedReleaseFlags flags, BaseObject obj)
 {
     _flags = flags;
     _object = obj;
 }
 /// <summary>
 /// Adds the specified object for disposal.
 /// </summary>
 /// <param name="obj">The object to dispose.</param>
 public void AddDispose(BaseObject obj)
 {
     _objects.Add(new DelayedReleaseObject(DelayedReleaseFlags.Dispose, obj));
 }
 /// <summary>
 /// Adds the specified object for dereferencing.
 /// </summary>
 /// <param name="obj">The object to dereference.</param>
 public void AddDereference(BaseObject obj)
 {
     _objects.Add(new DelayedReleaseObject(DelayedReleaseFlags.Dereference, obj));
 }
 public DelayedReleaseObject(DelayedReleaseFlags flags, BaseObject obj)
 {
     _flags  = flags;
     _object = obj;
 }
 /// <summary>
 /// Adds the specified object for disposal.
 /// </summary>
 /// <param name="obj">The object to dispose.</param>
 public void AddDispose(BaseObject obj)
 {
     _objects.Add(new DelayedReleaseObject(DelayedReleaseFlags.Dispose, obj));
 }
 /// <summary>
 /// Adds the specified object for dereferencing.
 /// </summary>
 /// <param name="obj">The object to dereference.</param>
 public void AddDereference(BaseObject obj)
 {
     _objects.Add(new DelayedReleaseObject(DelayedReleaseFlags.Dereference, obj));
 }