Multiline string literal in C#

后端 未结 13 1468
梦谈多话
梦谈多话 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.

    0 讨论(0)
提交回复
热议问题