/// <summary> /// /// </summary> /// <param name="disposing"></param> protected virtual void Dispose(bool disposing) { if (disposing) { if (m_iprovider != null) { m_iprovider.Dispose(); m_iprovider = null; } } }
/// <summary> /// Dispose of the backing store before garbage collection. /// </summary> /// <param name="disposing"> /// <see langword="true"/> if disposing; otherwise, <see langword="false"/>. /// </param> protected virtual void Dispose(bool disposing) { if (!IsDisposed) { if (disposing) { // Dispose managed resources. if (m_iprovider != null) { m_iprovider.Dispose(); m_iprovider = null; } } // Dispose unmanaged resources. // Note disposing has been done. IsDisposed = true; } }
/// <summary> /// Dispose of the backing store before garbage collection. /// </summary> /// <param name="disposing"> /// <see langword="true"/> if disposing; otherwise, <see langword="false"/>. /// </param> protected override void Dispose(bool disposing) { if (!IsDisposed) { if (disposing) { // Dispose managed resources. if (m_iprovider != null) { m_iprovider.Dispose(); m_iprovider = null; } } // Dispose unmanaged resources. // Note disposing has been done. IsDisposed = true; } // Call Dispose in the base class. base.Dispose(disposing); }