Exemple #1
0
 /// <summary>
 /// Closes the <see cref="DocMaker"/>. The base implementation closes the
 /// <see cref="ContentSource"/>, and it can be overridden to do more work (but make
 /// sure to call <c>base.Dispose(bool)</c>).
 /// </summary>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         m_source.Dispose();
     }
 }
Exemple #2
0
 /// <summary>
 /// Closes the <see cref="DocMaker"/>. The base implementation closes the
 /// <see cref="ContentSource"/>, and it can be overridden to do more work (but make
 /// sure to call <c>base.Dispose(bool)</c>).
 /// </summary>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         m_source?.Dispose();
         leftovr?.Dispose();  // LUCENENET specific
         docState?.Dispose(); // LUCENENET specific
     }
 }