public SmtpClient(string host, int port) { if (NetEventSource.IsEnabled) NetEventSource.Enter(this, host, port); try { if (port < 0) { throw new ArgumentOutOfRangeException(nameof(port)); } _host = host; _port = port; Initialize(); } finally { if (NetEventSource.IsEnabled) NetEventSource.Exit(this); } }