1 public void GetVal(){ 2 string s1 = "D:\\文本文件\\text.txt"; 3 string s2 = @"D:\文本文件\text.txt";// 忽略转义字符 4 string b1 = "select * " + 5 "from table " + 6 "where 1=1"; 7 // 让字符串跨行 8 string b2 = @"select * 9 from table 10 where 1=1";11 // 允许关键字作为标识符12 string @int = "@int";13 Console.WriteLine(@int);14 }