Exemple #1
0
 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);
     }
 }
Exemple #2
0
 public AbstractReferenceObject(
     AbstractThing thing
     )
 {
     this.Thing = thing;
 }
Exemple #3
0
        public AbstractThing Thing; // (optional)

        public AbstractReferenceObject()
        {
            this.Thing = default(AbstractThing);
        }
 public void DiscardAbstractThing(AbstractThing o)
 {
     // Dispose?
 }