📜  用单反斜杠替换双反斜杠c#代码示例

📅  最后修改于: 2022-03-11 14:48:51.881000             🧑  作者: Mango

代码示例1
string path = "C:\Hg\temp\\LogFile.txt";
string output = path.Replace(@"\\", @"\"); 

output >>>
C:\Hg\temp\LogFile.txt