How do you add a double quote to a string?

How do you add a double quote to a string?
Answer
A double quote is the ASCII value 34, so you can append this to your string.
…
In C#, there are at least 4 ways to embed a quote within a string:
  1. Escape quote with a backslash.
  2. Precede string with @ and use double quotes.
  3. Use the corresponding ASCII character.
  4. Use the Hexadecimal Unicode character.
2 нояб. 2018 г.
 

Tìm kiếm

Back
Top