.NET 中双引号和单引号互相替换 20
想写一段代码,实现双引号换成单引号,单引号换成双引号。。。求教。StreamWriterswunion=newStreamWriter(Dir_SP+@"\C"+".tx...
想写一段代码,实现双引号换成单引号,单引号换成双引号。。。
求教。
StreamWriter swunion = new StreamWriter(Dir_SP + @"\C" + ".txt", true);
string txt= DA2["Text"].ToString();
if (txt.Contains("SELECT * FROM cti WHERE cti.DocTypeIdentity='abc'"))
{
a = 0;
//????
swunion.Write(txt);
} 展开
求教。
StreamWriter swunion = new StreamWriter(Dir_SP + @"\C" + ".txt", true);
string txt= DA2["Text"].ToString();
if (txt.Contains("SELECT * FROM cti WHERE cti.DocTypeIdentity='abc'"))
{
a = 0;
//????
swunion.Write(txt);
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询