-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unobsolete IPAddress.Address, or create a new equivalent property #68619
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsForking #68591 (comment) to a new issue.
We should consider unobsoleting it or creating a new, equivalent property with a name that describes the purpose and the limitations better, for example: public class IPAddress
{
public long IPv4Value { get; }
}
|
Triage: It makes sense -- we should document how it should be used (with IPv4 check). |
Would it make sense to have something like public class IPAddress
{
int128 GetAddress();
} While this may be slightly less efficient than |
Thanks for the pointer @antonfirsov. That one slipped from my mind. I was fiddling more with Perhaps we should have round of talk with @stephentoub and rest for the team. |
triage: not critical for 9.0, moving to future |
Forking #68591 (comment) to a new issue.
IPAddress.Address
is the most efficient way to get the IPv4 value, however it doesn't make sense and throws for IPv6, so we made it obsolete.We should consider unobsoleting it or creating a new, equivalent property with a name that describes the purpose and the limitations better, for example:
The text was updated successfully, but these errors were encountered: