What does Uri.LocalPath define for non-local paths?
The docs for Uri.LocalPath don't say what happens if you feed it in a non-local way, for example http://stackoverflow.com/
. Does anyone know of a source that gives an official spec for how it deals with this?
I want to know what problems it has and what problems it has, so I can't be sure if I can get it right by just trying things.
(in turn, does anyone know of a reliable way to check if the Uri is local or not? Specifically, this is what I can get through the filesystem)
+1
a source to share
1 answer
You are breaking the preconditions by using it on a Uri that is not a "filename". This way, as I see it, it can return anything.
To find out if Uri is a filename use Uri.IsFile
+1
a source to share