Base:
30 references to Equals
Aspire.Dashboard.Tests (2)
Integration\StartupTests.cs (2)
720Assert.True(ipEndPoint.Address.Equals(IPAddress.Any) || ipEndPoint.Address.Equals(IPAddress.IPv6Any), "Endpoint address should be IPv4 or IPv6.");
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
AddressBinderTests.cs (2)
267if (endpoint.IPEndPoint.Address.Equals(IPAddress.IPv6Any)) 273if (endpoint.IPEndPoint.Address.Equals(IPAddress.Any))
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
SocketTransportOptions.cs (1)
146if (ip.Address.Equals(IPAddress.IPv6Any))
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
1123.Where(ip => !ip.Equals(IPAddress.IPv6Loopback))
System.Net.HttpListener (2)
System\Net\HttpListenerRequest.cs (1)
111public bool IsLocal => LocalEndPoint!.Address.Equals(RemoteEndPoint!.Address);
System\Net\Managed\HttpEndPointManager.cs (1)
130if (IPAddress.Any.Equals(addr))
System.Net.NameResolution (10)
System\Net\Dns.cs (10)
45if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any)) 76if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any)) 157if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any)) 206if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any)) 526if (throwOnIIPAny && (ipAddress.Equals(IPAddress.Any) || ipAddress.Equals(IPAddress.IPv6Any)))
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.cs (2)
67if (address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any))
System.Net.Quic (1)
System\Net\Quic\QuicListener.cs (1)
148if (options.ListenEndPoint.Address.Equals(IPAddress.IPv6Any))
System.Net.Requests (2)
System\Net\FtpControlStream.cs (2)
112if (!connection.ServerAddress.Equals(((IPEndPoint)connection._dataSocket.RemoteEndPoint!).Address)) 745if (!ServerAddress.Equals(((IPEndPoint)_dataSocket.RemoteEndPoint!).Address))
System.Net.Sockets (6)
System\Net\Sockets\IPPacketInformation.cs (1)
37(_address is null ? other._address is null : _address.Equals(other._address));
System\Net\Sockets\Socket.cs (4)
3577if ((boundAddress != null && IsDualMode && (boundAddress.IsIPv4MappedToIPv6 || boundAddress.Equals(IPAddress.IPv6Any)))) 3875return IPAddress.Any.Equals(address) || IPAddress.IPv6Any.Equals(address) || s_IPAddressAnyMapToIPv6.Equals(address);
System\Net\Sockets\UDPClient.cs (1)
275return address.Equals(IPAddress.Broadcast);
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1311if (sanEntry.Equals(ipAddress))