Why does IsWellFormedOriginalString fail on file Uris?

Posted by Avi on Stack Overflow See other posts from Stack Overflow or by Avi
Published on 2010-03-17T11:18:14Z Indexed on 2010/03/17 11:21 UTC
Read the original article Hit count: 234

Filed under:

I have code like this:

string uriString = @"C:\Temp\test.html";
Uri uri = new Uri(uriString);
bool goodCond = uri.IsWellFormedOriginalString();

But goodCond is false! What am I doing wrong?

© Stack Overflow or respective owner

Related posts about uri