c# - How do I see Path.InvalidPathCharacters as, well, characters? -
i want output human-readable list of invalid path characters understood .net's runtime.
i've tried both linqpad , simple console.writeline(path.getinvalidpathchars)
console application, both display characters illegibly. apparently, expected.
note: characters may not displayable on console.
is documentation telling me can't human-readable version of these characters?
some characters not have visual representation can written in regular console. this:
var chars = path.getinvalidpathchars().select(x => (int)x); foreach (char c in path.getinvalidpathchars()) { console.writeline("(char)" + (int)c + ": " + c ); }
Comments
Post a Comment