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