3 ms·
Learned of this one [0] the other day, in the remarks of System.Net.IPAddress.TryParse: "Fixing this bug would break existing apps, so the current behavior wil
by hermitdev 5y ago
Learned of this one [0] the other day, in the remarks of System.Net.IPAddress.TryParse:
"Fixing this bug would break existing apps, so the current behavior will not be changed"
In other words, the obvious method to use to validate whether or not a string contains a valid IP address can't be used because existing applications expect the broken behavior, and thus it will not be fixed. Correct parsing of an IP address is an exercise now left to the user (to get wrong).
[0] https://docs.microsoft.com/en-us/dotnet/api/system.net.ipaddress.tryparse?view=netframework-4.8 https://docs.microsoft.com/en-us/dotnet/api/system.net.ipadd...