예제 #1
0
        /// <summary>
        /// Releases resources used by the <see cref="LiveFieldValues{S, T}"/> and
        /// if overridden in a derived class, optionally releases unmanaged resources.
        /// </summary>
        /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources;
        /// <c>false</c> to release only unmanaged resources.</param>

        // LUCENENET specific - implemented proper dispose pattern
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                mgr.RemoveListener(this);
            }
        }
예제 #2
0
 public void Dispose()
 {
     mgr.RemoveListener(this);
 }