7 references to TryParse
Microsoft.AspNetCore.HeaderParsing (1)
Parsers\IPAddressListParser.cs (1)
43
if (IPAddress.
TryParse
(addressToParse, out var address))
Microsoft.AspNetCore.HttpOverrides (1)
IPNetwork.cs (1)
194
if (!IPAddress.
TryParse
(networkSpan.Slice(0, forwardSlashIndex), out prefix))
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\StringParsingHelpers.Addresses.cs (1)
111
if (IPAddress.
TryParse
(dhcpAddressSpan, out IPAddress? dhcpAddress))
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
142
if (addressStart < 5 || addressLength <= 0 || !IPAddress.
TryParse
(stdout.AsSpan(addressStart, addressLength), out address))
System.Net.Primitives (3)
System\Net\IPAddress.cs (1)
276
TryParse
(s, out result);
System\Net\IPEndPoint.cs (1)
114
if (IPAddress.
TryParse
(s.Slice(0, addressLength), out IPAddress? address))
System\Net\IPNetwork.cs (1)
204
if (IPAddress.
TryParse
(ipAddressSpan, out IPAddress? address) &&