Esempio n. 1
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            System.Diagnostics.Debug.WriteLineIf(!disposing, "****************** Missing Dispose() call for " + GetType().Name + ". ******************");
            // Must not be run more than once.
            if (IsDisposed)
            {
                return;
            }

            if (disposing)
            {
                m_searcher.Clear();
            }
            m_cache = null;

            base.Dispose(disposing);
        }
Esempio n. 2
0
 void IVwNotifyChange.PropChanged(int hvo, int tag, int ivMin, int cvIns, int cvDel)
 {
     if (IsIndexResetRequired(hvo, tag))
     {
         lock (m_syncRoot)
         {
             m_searcher.Clear();
             m_indexObjPos.Clear();
             m_searchableObjs = null;
         }
     }
 }