Search code examples
c#stringdouble-quotes

How to include quotes in a string


I have a string "I want to learn "c#"". How can I include the quotes before and after c#?


Solution

  • Escape them with backslashes.

    "I want to learn \"C#\""