private static void ThrowIfNotSupportsMultipleConnectAttempts() { if (!SocketPal.SupportsMultipleConnectAttempts) { throw new PlatformNotSupportedException(SR.net_sockets_connect_multiaddress_notsupported); } }