C# 特殊字符C# Special Characters

特殊字符是预定义的上下文字符,用于修改最前面插入了此类字符的程序元素(文本字符串、标识符或属性名称)。Special characters are predefined, contextual characters that modify the program element (a literal string, an identifier, or an attribute name) to which they are prepended. C# 支持以下特殊字符:C# supports the following special characters:

  • @:逐字字符串标识符字符。@, the verbatim identifier character.

  • $:内插的字符串字符。$, the interpolated string character.

请参阅See also