摘要: C#中转义字符分2中,一种是\,一种是@。 作用1、在字符串的前面加@表示取消字符串中的转义 例如 string path=@"d:\root\subdir"; 作用2、如果用户定义的对象名和系统关键字冲突,可以在变量前面加入@ 例如 string @Class="this is a test"; 转义字符 字符名称 \' 单引号 \" 双引号 ... 阅读全文
posted @ 2019-03-10 22:14 txb212 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace _03day输出变量的值连_赋值符_连接符_占位符 8 { 9 class Program... 阅读全文
posted @ 2019-03-10 21:57 txb212 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace _02day变量 8 { 9 class Program 10 { 11 ... 阅读全文
posted @ 2019-03-10 21:54 txb212 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 我的第一个项目hello,world! 控制台程序 阅读全文
posted @ 2019-03-10 21:50 txb212 阅读(173) 评论(0) 推荐(0) 编辑