string webPath = folderPath.Replace("\", "/");
您好,我正在尝试替换上面的内容,但遇到了困难。 我需要将转义序列应用于/. 如果是这样,任何人都知道它在 c# 中是什么。 非常感谢任何帮助/提示。
最佳答案
string webPath = folderPath.Replace(@"\", "/");
关于c# - 字符串 webPath = folderPath.Replace ("\\", "/");,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/550143/