Dispose() публичный Метод

public Dispose ( ) : void
Результат void
Пример #1
0
        // Protected implementation of Dispose pattern.
        private void Dispose(bool isDisposing)
        {
            try
            {
                if (!this.IsDisposed)
                {
                    stop();
                    if (isDisposing)
                    {
                        // Free any other managed objects here.
                        if (m_threadStopEvent != null)
                        {
                            m_threadStopEvent.Dispose();
                            m_threadStopEvent = null;
                        }
                    }

                    // Free any unmanaged objects here.
                }
            }
            finally
            {
                this.IsDisposed = true;
            }
        }