public virtual void PurgeAll() { DLink pNode = this.pHead; DLink pTmp = null; while (pHead != null) { // hold next, delete current, pass next to current pTmp = pNode.GetNext(); DLink.Remove(ref this.pHead, pNode); pNode = pTmp; } }
protected void BaseRemove(DLink pDLink) { // check that pDLink is not null Debug.Assert(pDLink != null); DLink retiredNode = DLink.Remove(ref pActive, pDLink); mNumActive--; // check that retiredNode is not null Debug.Assert(retiredNode != null); DLink.AddToFront(ref pReserve, retiredNode); mNumReserve++; }
override public void Remove(Component pComponent) { Debug.Assert(pComponent != null); DLink.Remove(ref this.poHeadChild, pComponent); }
protected void baseDetach(Observer observer) { Debug.Assert(observer != null); DLink.Remove(ref this.pHead, observer); }