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
Add multiple lines : use @
string query = @"SELECT foo, bar
FROM table
WHERE id = 42";
Add String Values to the middle : use $
string text ="beer";
string query = $"SELECT foo {text} bar ";
Multiple line string Add Values to the middle: use $@
string text ="Customer";
string query = $@"SELECT foo, bar
FROM {text}Table
WHERE id = 42";