关于string类型 string a=@"Marry said ""hello"" to me";输出是//Marry said "hello" to me.这个@后面的的引号和哪个引号是一对的? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string a=@"Marry said ""hello"" to me";string a="Marry said \"hello\" to me"; string a="Marry said"+"hello"+"to me";多少个字符串都可以加的呀,为什么不用呢 使用@是使转义序列“不”被处理,按“原样”输出如要在一个用 @ 引起来的字符串中包括一个双引号, 就需要使用两对双引号了。so, Marry said "hello" to me.使用@表现形式就是这样的: string a=@"Marry said ""hello"" to me"; 顶,最后一个引号对应,中间的两个连续""作为转义"用的,所以结果是:Marry said "hello" to me. string a=@"Marry said ""hello"" to me"; 存储过程的疑问 同一表中的数据写入问题 异步socket出现问题了!! 寻求一个正则表达式,请大家帮忙啦。 谁能解释一下 System.Collections.Generic 下的集合类为什么都不实现 ICloneable 了 为什么我照书上打的C#程序不能调试啊! textbox不能录入任何字符了? 自定義控件怎樣設置彈出屬性頁 CS文件中如何取得ASPX页面中元素的内容? C#文件操作 c#编写的托管的程序生成的dll,是不是确实不用在系统注册表注册呀? 在线等,Visual C# 项中的本地数据库模板和基于服务的数据库模板的差别
多少个字符串都可以加的呀,为什么不用呢
如要在一个用 @ 引起来的字符串中包括一个双引号,
就需要使用两对双引号了。so,
Marry said "hello" to me.
使用@表现形式就是这样的:
string a=@"Marry said ""hello"" to me";
顶,最后一个引号对应,中间的两个连续""作为转义"用的,所以结果是:Marry said "hello" to me.