Answers for "c# replace backslash with double slash"

C#
0

replace double backslash with single backslash c#

string path = "C:\Hg\temp\\LogFile.txt";
string output = path.Replace(@"\\", @"\"); 

output >>>
C:\Hg\temp\LogFile.txt
Posted by: Guest on April-22-2020

Code answers related to "c# replace backslash with double slash"

C# Answers by Framework

Browse Popular Code Answers by Language