/// <summary>
 /// Disposes this instance and all internal resources.
 /// </summary>
 /// <param name="isDisposing">True if this instance is being explicitly disposed, false if it is being disposed from a finaliser.</param>
 protected virtual void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         _InnerFilter?.Dispose();
     }
 }
Exemplo n.º 2
0
        private bool disposedValue = false; // 要检测冗余调用

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    inner.Dispose();
                }
                inner         = null;
                disposedValue = true;
            }
        }
Exemplo n.º 3
0
 public void Dispose()
 {
     innerFilter.Dispose();
     GC.SuppressFinalize(this);
 }
 public void Dispose()
 {
     filter.Dispose();
 }
 /// <summary>
 /// Disposes this instance and all internal resources.
 /// </summary>
 public void Dispose()
 {
     _InnerFilter?.Dispose();
 }
Exemplo n.º 6
0
 public void Dispose()
 {
     innerFilter.Dispose();
 }