static private filteredFileName ( string filename ) : string | ||
filename | string | |
리턴 | string |
internal static string filteredFileName(string filename)
{
const String illegal = "\\/:*?\"<>|";
StringBuilder sb = new StringBuilder();
foreach (char c in filename)
{
//Filter illegal characters out of the player name
if (!illegal.Contains(c))
sb.Append(c);
}
return sb.ToString();
}