Example #1
0
        public void Recycle()
        {
            if (pool != null)
            {
                CAssert.IsFalse(recycled);
                recycled = true;

                pool.Recycle(this);
            }

            OnRecycleObject();
        }
Example #2
0
 protected void Lock()
 {
     CAssert.IsFalse(locked);
     locked = true;
 }
 public override bool Add(CNotificationDelegate del)
 {
     CAssert.IsFalse(Contains(del));
     return(base.Add(del));
 }