double quote in string c# code example
Example 1: escape double quotes c#
string str = "He said to me, \"Hello World\". How are you?";
Example 2: how to put double quotes in a string c#
string str = "\"How to add doublequotes\"";
Example 3: double quotes in a string c#
Console.WriteLine("wrong!! you now have {0} points ( \"{1}\" letterguessed)", points, lettersGuessed);
Example 4: c# string contain double quote
var lyrics = @"""Alive"", she cried!"