Exemplo n.º 1
0
 /// <summary>
 ///     Frees persistent resources used by the <see cref="Analyzer"/>.
 /// </summary>
 /// <remarks>
 ///     <para>
 ///         The default implementation closes the internal <see cref="TokenStream"/>s
 ///         used by the analyzer.
 ///     </para>
 /// </remarks>
 public virtual void  Close()
 {
     if (tokenStreams != null)
     {
         tokenStreams.Close();
     }
     tokenStreams = null;
 }
Exemplo n.º 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (isDisposed)
            {
                return;
            }

            if (disposing)
            {
                if (tokenStreams != null)
                {
                    tokenStreams.Close();
                    tokenStreams = null;
                }
            }
            isDisposed = true;
        }