[英]How to Replace quotes with double quotes in String.Replace?
I am trying to replace '
with "
but to no avail.我正在尝试将'
替换为"
但无济于事。
I have tried the following:我尝试了以下方法:
output = output.Replace(@"'", @""");
output = output.Replace("'", @""");
output = output.Replace(@"'", """);
output = output.Replace(@"'", """");
You could use this piece of code, I have added a \
你可以使用这段代码,我添加了一个\
out = out.Replace("'","\"");
output = output.Replace("'", "\"");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.