Esempio n. 1
0
        //dispose pattern as described on msdn for a class that uses a safe handle
        private void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
            }

            if (!_toxDns3.IsInvalid && !_toxDns3.IsClosed && _toxDns3 != null)
            {
                _toxDns3.Dispose();
            }

            _disposed = true;
        }
Esempio n. 2
0
        //dispose pattern as described on msdn for a class that uses a safe handle
        private void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
            }

            if (!tox_dns3.IsInvalid && !tox_dns3.IsClosed && tox_dns3 != null)
            {
                tox_dns3.Dispose();
            }

            disposed = true;
        }