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

                pool.Recycle(this);
            }

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