public void Reclaim(AbstractThing o) { if (o != null) { if (o is FinalThing1) { this.Reclaim((FinalThing1)o); } else if (o is FinalThing2) { this.Reclaim((FinalThing2)o); } o.IntValue1 = default(int); } }
public AbstractReferenceObject( AbstractThing thing ) { this.Thing = thing; }
public AbstractThing Thing; // (optional) public AbstractReferenceObject() { this.Thing = default(AbstractThing); }
public void DiscardAbstractThing(AbstractThing o) { // Dispose? }