public override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { sslStream?.Dispose(); sslStream = null; connectionInfo = null; } }
protected override void Dispose(bool disposing) { if (disposing) { if (ssl_stream != null) { ssl_stream.Dispose(); } ssl_stream = null; } base.Dispose(disposing); }