|
static void | ReplaceInvalidCharacters (ref string path, string replacementValue="") |
| Replace all invalid characters for a file with an empty value unless you specificy otherwise More...
|
|
Definition at line 5 of file FilePath.cs.
◆ ReplaceInvalidCharacters()
static void BGC.IO.FilePath.ReplaceInvalidCharacters |
( |
ref string |
path, |
|
|
string |
replacementValue = "" |
|
) |
| |
|
inlinestatic |
Replace all invalid characters for a file with an empty value unless you specificy otherwise
- Parameters
-
Definition at line 13 of file FilePath.cs.
15 char[] invalidCharacters =
System.IO.Path.GetInvalidFileNameChars();
17 for (
int i = 0; i < invalidCharacters.Length; ++i)
19 path = path.Replace(invalidCharacters[i].ToString(), replacementValue);
The documentation for this class was generated from the following file: