Muokkaa

Jaa


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're prepended. C# supports the following special characters:

  • @, the verbatim identifier character.
  • $, the interpolated string character.
  • """, A sequence of three or more " characters provides the delimiters for a raw string literal.
  • _, a _ character represents a discard, which is a placeholder for an unused variable.

This section only includes those tokens that aren't operators. See the operators section for all operators.