Code:
public bool ValidName(string Name) { if (Name.IndexOfAny(new char[14] {[COLOR="Red"] ' ', '[', ']', '#', '*', '\\', '/', '<', '>', ':', '"', '|', '?', '='[/COLOR]}) > -1) //this is all windows folder invalids characters { return false; } else { return true; } }
Code:
public bool ValidName(string Name) { if (Name.IndexOfAny(new char[14] {'insert english alphabet'}) > -1) //this is all windows folder invalids characters { return true; } else { return false; } }