Lucene.Net.Codecs.BlockTerms.BlockTermsReader.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return 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();
            }
        }