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); }
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; }