예제 #1
0
        protected override void Dispose(bool disposing)
        {
            DH.Dispose(ref m_sendStream);
            DH.Dispose(ref m_recvStream);
            DH.Dispose(ref m_netStream);
            DH.Dispose(ref m_socket);

            base.Dispose(disposing);
        }
예제 #2
0
        void Dispose(bool disposing)
        {
            if (m_disposed)
            {
                return;
            }

            if (disposing)
            {
                // Managed cleanup code here, while managed refs still valid
                DH.Dispose(ref m_stream);
            }

            m_disposed = true;
        }