add quotes to string code example
Example 1: c# how to write speech marks in console application
// How to write speech marks in the console:
Console.WriteLine("\"This is speech!\".");
Example 2: how to put double quotes in a string c#
string str = "\"How to add doublequotes\"";
Example 3: how to put quotes inside string c
char myString = "She said, \"You deserve a treat!\" ";
// put a \ before the quotes
//output would be : She said, "You deserve a treat!"