How to easily display double quotes in strings in C#?

后端 未结 4 1458
野性不改
野性不改 2021-01-12 04:59

If you have a string with a numerous double quotes,

in PHP you can do this:

file.WriteLine(\'

        
4条回答
  •  难免孤独
    2021-01-12 05:25

    I would recommend avoiding some bizarre way like this:

    const char doubleQuote = '"';
    
    Console.WriteLine("", doubleQuote);
    

提交回复
热议问题