Пример #1
0
        /// <summary>
        /// Releases all resources used by this spell check engine.
        /// </summary>
        public void Dispose()
        {
            if (_hunspell != null)
            {
                _hunspell.Dispose();
                _hunspell = null;
            }

            SaveCustomWordsDictionary();
        }
Пример #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_hunspell != null && !_hunspell.IsDisposed)
         {
             _hunspell.Dispose();
         }
         _hunspell = null;
     }
 }
 public void Cleanup()
 {
     Checker?.Dispose();
 }
 public void Dispose()
 {
     Checker?.Dispose();
 }