StringFunctions.ValidFileName

Converts illegal characters in the specified filename to underscores.

public static string ValidFileName(string name)

Return Value

The valid version of the filename.

Parameters

name
The file name without any path.

Remarks

Adapted from C# 4.0 in a Nutshell, page 991.


See also:

Class StringFunctions