[API Proposal]: IPAddress.IsValid #111282
Labels
api-approved
API was approved in API review, it can be implemented
area-System.Net
in-pr
There is an active PR which will close this issue when it is merged
Milestone
Background and motivation
Cheaper
IPAddress.TryParse(span, out _)
for when you don't need the result.API Proposal
API Usage
We have an internal helper
TargetHostNameHelper.IsValidAddress
that appears to be doing exactly whatIPAddress.IsValid
would be:runtime/src/libraries/Common/src/System/Net/Security/TargetHostNameHelper.cs
Line 43 in 94add2e
Alternative Designs
Risks
No response
The text was updated successfully, but these errors were encountered: