Multiline string literal in C#

后端 未结 13 1795
梦谈多话
梦谈多话 2020-11-22 11:15

Is there an easy way to create a multiline string literal in C#?

Here\'s what I have now:

string query = \"SELECT foo, bar\"
+ \" FROM table\"
+ \" W         


        
13条回答
  •  一生所求
    2020-11-22 11:48

    I know I am bit late to the party but I want to recommend https://www.buildmystring.com/ for future readers of this thread. You can convert any code to C# string literal using this site.

提交回复
热议问题