This content was proof-read by Grammarly. You can Try Grammary for FREE
If you are looking at an easy way to create a multiline string literal in C#, then you use the verbatim string literal as shown in the below code snippet.
C# Program – Multiline string literal in C#
string searchQuery = @"SELECT Name, Designation FROM AbundantCodeEmployee WHERE EmployeeId = 1"; Console.WriteLine(searchQuery)
Using the verbatim stting ensures that it allows multiple lunes and also you donot need to have any escape special characters (except for double quotes).