用 @ 引起来的字符串以 @ 开头,并用双引号引起来。例如:
@"good morning"  // a string literal
用 @ 引起来的优点在于换码序列“不”被处理,这样就可以轻松写出字符串,例如一个完全限定的文件名:
@"c:\Docs\Source\a.txt"  // rather than "c:\\Docs\\Source\\a.txt"
若要在一个用 @ 引起来的字符串中包括一个双引号,请使用两对双引号:
@"""Ahoy!"" cried the captain." // "Ahoy!" cried the captain.