x86 .NET CF v 2.0.7045.0 (SP2?)
Windows CE 4.2 & 5.0

IPAddress.Parse("A1") returns 0.0.0.101 instead of throwing a
FormatException.

This breaks Dns.GetHostEntry & even Dns.GetHostByName (deprecated, but
must run the same codepath) if the host name is an A followed by
numbers.

Am I missing something?

(Cross-posted: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2162267&SiteID=1)

Re: Bug? IPAddress.Parse("A1") not throwing FormatException by John

John
Wed Sep 19 10:47:07 PDT 2007

On Sep 19, 9:57 am, "John S." <john.spr...@apisoftwareinc.com> wrote:
> x86 .NET CF v 2.0.7045.0 (SP2?)
> Windows CE 4.2 & 5.0
>
> IPAddress.Parse("A1") returns 0.0.0.101 instead of throwing a
> FormatException.
>

Apparently this is an issue with WSAStringToAddress that is fixed in
CE 6.0.