79 int num2 =
s.LastIndexOf(
':');
82 if (
s[num2 - 1] ==
']')
86 else if (
s.Slice(0, num2).LastIndexOf(
':') == -1)
96 result =
new IPEndPoint(address, (
int)result2);
124 string format = ((_address.AddressFamily ==
AddressFamily.InterNetworkV6) ?
"[{0}]:{1}" :
"{0}:{1}");
135 if (socketAddress ==
null)
144 if (socketAddress.
Size < num)
151 public override bool Equals([NotNullWhen(
true)]
object? comparand)
155 return iPEndPoint._port ==
_port;
static CultureInfo InvariantCulture
override int GetHashCode()
override string ToString()
override bool Equals([NotNullWhen(true)] object? comparand)
static bool TryParse([NotNullWhen(true)] string? ipString, [NotNullWhen(true)] out IPAddress? address)
AddressFamily AddressFamily
static bool TryParse(ReadOnlySpan< char > s, [NotNullWhen(true)] out IPEndPoint? result)
IPEndPoint(IPAddress address, int port)
override bool Equals([NotNullWhen(true)] object? comparand)
override EndPoint Create(SocketAddress socketAddress)
static IPEndPoint Parse(string s)
IPEndPoint(long address, int port)
override int GetHashCode()
override SocketAddress Serialize()
override string ToString()
static IPEndPoint Parse(ReadOnlySpan< char > s)
static bool TryParse(string s, [NotNullWhen(true)] out IPEndPoint? result)
static readonly int IPv4AddressSize
static readonly int IPv6AddressSize
IPEndPoint GetIPEndPoint()
static bool ValidatePortNumber(int port)
static string Format(string resourceFormat, object p1)
static string net_InvalidSocketAddressSize
static string net_InvalidAddressFamily
static string bad_endpoint_string