c# string replace double backslash code example
Example: replace double backslash with single backslash c#
string path = "C:\Hg\temp\\LogFile.txt";
string output = path.Replace(@"\\", @"\");
output >>>
C:\Hg\temp\LogFile.txt
string path = "C:\Hg\temp\\LogFile.txt";
string output = path.Replace(@"\\", @"\");
output >>>
C:\Hg\temp\LogFile.txt