Reputation: 6883
I trying to understand why Uri object is accepting this URL:
http://test/dir/page?id=1
I'm loading this URL with this code:
string u = "http://test/dir/page?id=1";
Uri url;
if (!Uri.TryCreate(u, UriKind.Absolute, out url))
throw new InvalidUrlException(u);
For me, this URL is seems missing.
What do you think?
Upvotes: 1
Views: 51