Verbatim literal strings: multiple line string : Verbatim literal strings « String « C# / CSharp Tutorial






using System; 
 
class Example {    
  public static void Main() {    
    Console.WriteLine(@"BBBBBB
AAAAA
VVVVVVV
"); 
    Console.WriteLine(@"Here is some tabbed output: 
1  2  3  4 
5  6  7  8 
"); 
    
  }    
}
BBBBBB
AAAAA
VVVVVVV

Here is some tabbed output:
1       2       3       4
5       6       7       8








5.2.Verbatim literal strings
5.2.1.Verbatim Strings
5.2.2.Verbatim literal strings: multiple line string
5.2.3.Verbatim literal strings: quote
5.2.4.Regular String Constants and Verbatim (@) String Constants