.NET methods like Path.IsPathRooted()
are great, but throw if the input string isn't valid. Which is fine, but it would be nice to pre-check if an input string is a valid path before jumping into an exception-checking codeblock.
I can't see a Path.IsValidPath()
or similar, is there something like this available?