标签:code 文件 tostring nbsp pat 特殊字符 for char str
string invalid = new string(Path.GetInvalidFileNameChars()) + new string(Path.GetInvalidPathChars()); foreach (char c in invalid) { illegal = illegal.Replace(c.ToString(), ""); }
标签:code 文件 tostring nbsp pat 特殊字符 for char str
原文地址:http://www.cnblogs.com/x-poior/p/6158541.html