public virtual void Reset() { if (pWB != null) { UnregiserHandler(); CWBPool.ReturnCWB(pWB); pWB = null; } pNode = null; pNodesEnum = null; pNodeList = null; m_NodeStack.Clear(); }
protected void Dispose(bool Disposing) { if (!IsDisposed) { if (Disposing) { //清理托管资源 } //清理非托管资源 if (pWB != null) { UnregiserHandler(); CWBPool.ReturnCWB(pWB); pWB = null; } } IsDisposed = true; }