Error in the implementation of WP 7 Uri.IsWellFormedUriString?

In the .NET 4 console application and Silverlight 4 application, false returned:

Uri.IsWellFormedUriString ("/test", UriKind.Absolute)

but the same call in a Windows Phone application (7.0 or 7.1 using the 7.1 Beta 2 SDK published on 6/29/11) returns true .

Can anyone else confirm this? Is this a bug in WP7?

Update

I reported this as a Microsoft Connect error and received an update today that it was closed as "Wont 'Fix." It doesn’t matter to me, but I thought I would add this update in the same way as FYI.

+6
source share
1 answer

After the documentation, his error:

A boolean value that is true if the string was correctly formed in accordance with RFC 3986; else false.

And RFC 3986 says:

absolute-URI = schema ":" hier-part ["?" inquiry]

Therefore, it is better to send this error to Microsoft Connect in the VS section, referring to the version of the toolkit for phone development tools.

+4
source

Source: https://habr.com/ru/post/894510/


All Articles