Lucene.Net.Codecs.BlockTerms.BlockTermsReader.Dispose C# (CSharp) Метод

Dispose() публичный Метод

public Dispose ( ) : void
Результат void
        public override void Dispose()
        {
            try
            {
                try
                {
                    if (_indexReader != null)
                        _indexReader.Dispose();
                }
                finally
                {
                    // null so if an app hangs on to us (ie, we are not
                    // GCable, despite being closed) we still free most
                    // ram
                    _indexReader = null;
                    if (_input != null)
                        _input.Dispose();
                }
            }
            finally
            {
                if (_postingsReader != null)
                    _postingsReader.Dispose();
            }
        }