Пример #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_con != null)
                {
                    _con.Dispose();
                    _con = null;
                }

                if (_threadPool != null)
                {
                    _threadPool.Dispose();
                    _threadPool = null;
                }
            }
        }
Пример #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_con != null)
                {
                    _con.Dispose();
                    _con = null;
                }

                if (_threadPool != null)
                {
                    _threadPool.Dispose();
                    _threadPool = null;
                }
            }
        }