Method ReplaceInvalidFileNameCharacters
ReplaceInvalidFileNameCharacters(string, string)
Replaces invalid characters for a filename or a directory with a given optional replacemenet string
Declaration
public static string ReplaceInvalidFileNameCharacters(this string input, string replacement = "_")
Parameters
Type | Name | Description |
---|---|---|
string | input | The input filename or directory |
string | replacement | The replacement |
Returns
Type | Description |
---|---|
string | The string with the invalid characters replaced |