Create verbatim literal strings in CSharp
Description
The following code shows how to create verbatim literal strings.
Example
using System; //from www . j a v a2 s . c om
public class Verbatim {
public static void Main() {
Console.WriteLine(@"This is a verbatim
string literal
that spans several lines.
");
Console.WriteLine(@"Here is some tabbed output:
1 2 3 4
5 6 7 8
");
Console.WriteLine(@"Programmers say, ""I like C#.""");
}
}
The code above generates the following result.