Lucene.Net.LukeNet.Luke.Dispose C# (CSharp) Метод

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }

            if (indexReader != null)
                try
                {
                    indexReader.Close();
                }
                catch (Exception) { };

            if (dir != null)
                try
                {
                    dir.Close();
                }
                catch (Exception) { };

            if (p != null)
                try
                { p.Save(); }
                catch (Exception) { }

            base.Dispose(disposing);
        }