首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

StringBuilder转String解决方法

2013-10-25 
StringBuilder转StringStringBuilder temptostring 以后原本的值Data SourceYRKB3RFHNEQCL1F\\SQLEXPRES

StringBuilder转String
StringBuilder temp;

tostring 以后

原本的值Data Source=YRKB3RFHNEQCL1F\\SQLEXPRESS;Initial Catalog=Ordering;Integrated Security=True
变成了Data Source=YRKB3RFHNEQCL1F\\\\SQLEXPRESS;Initial Catalog=Ordering;Integrated Security=True

怎么办
[解决办法]
其实是正确的。

你在调试器里面看到 \\ 其实就是 \

热点排行