|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
IPAddress.Parse and IPAddress.TryParse RulesHi,
Can someone provide a complete set of rules for the IPAddress.Parse function? The remarks section in the .NET Framework Class Library provides some of the rules but it appears that .010 for example is interpreted in Octal. Does this mean that one can mix octal, decimal and hexadecimal octets? What are the other rules? Ian In .NET 2.0 IPAddres.Parse and TryParse just delegate to the WinSock function
inet_addr for IPv4 addresses. The documentation for inet_addr details what constitutes a valid IPv4 address: http://msdn2.microsoft.com/en-us/library/ms738563.aspx -- Show quoteBrowse http://connect.microsoft.com/VisualStudio/feedback/ and vote. http://www.peterRitchie.com/blog/ Microsoft MVP, Visual Developer - Visual C# "Ian Lowe" wrote: > Hi, > Can someone provide a complete set of rules for the IPAddress.Parse > function? The remarks section in the .NET Framework Class Library provides > some of the rules but it appears that .010 for example is interpreted in > Octal. Does this mean that one can mix octal, decimal and hexadecimal octets? > > What are the other rules? > Ian |
|||||||||||||||||||||||