How to

get invalid path/filename characters

Published: 25. October 2011 | Updated: 25. October 2011
License: Microsoft Public License (MS-PL)
Categories: File system
Tags: C# Text
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.IO;

Code

char[] invalidPathCharacters = Path.GetInvalidPathChars();
char[] invalidFileNameCharacters = Path.GetInvalidFileNameChars();
Send us feedback about this snippet »



Related Snippets: