我需要从 imagepth
字符串变量中删除 \
字符:
imagepth = "# Eval(\"Name\",\"Gallary/\"" + imgwords[4] + "\"/Images/{0}\")";
最佳答案
您可以使用 Replace 方法将 "\\"
替换为空字符串
str = str.Replace("\\", "");
关于c# - 从字符串中删除转义字符 "\",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23311696/