c# set variable with double quotes code example Example: how to put double quotes in a string c# string str = "\"How to add doublequotes\"";