Answers for "c# remove invalid directory characters"

C#
0

c# remove invalid directory characters

public string ReplaceInvalidChars(string filename)
{
    return string.Join("_", filename.Split(Path.GetInvalidFileNameChars()));    
}
Posted by: Guest on June-07-2021

Code answers related to "c# remove invalid directory characters"

C# Answers by Framework

Browse Popular Code Answers by Language