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:
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:
- Escape quote with a backslash.
- Precede string with @ and use double quotes.
- Use the corresponding ASCII character.
- Use the Hexadecimal Unicode character.