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.

console output illegible

msdn's documentation:

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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -