C# two double quotes

前端 未结 11 1547
灰色年华
灰色年华 2020-12-10 03:54

I want to print two double quotes in C# as the output. How to do this?

I mean the output should be: \"\" Hello World \"\"

11条回答
  •  忘掉有多难
    2020-12-10 04:54

    StringBuilder sb = new StringBuilder(); sb.Append("\"Hello World \""); string s = sb.ToString();

提交回复
热议问题