/// <summary> /// Disposes of managed and unmanged resources /// </summary> /// <param name="disposing">True to dispose of managed resources, false to dispose of unmanged resources</param> protected virtual void Dispose(bool disposing) { if (!this.disposedValue) { if (disposing) { if (memberFactory != null) { memberFactory.Dispose(); memberFactory = null; } if (TL != null) { TL.Dispose(); } } } this.disposedValue = true; }
/// <summary> /// Dispose the late-bound interface, if needed. Will release it via COM /// if it is a COM object, else if native .NET will just dereference it /// for GC. /// </summary> public void Dispose() { _memberFactory.Dispose(); TL.Enabled = false; TL.Dispose(); }
/// <summary> /// Dispose the late-bound interface, if needed. Will release it via COM /// if it is a COM object, else if native .NET will just dereference it /// for GC. /// </summary> public void Dispose() { _memberFactory.Dispose(); }