.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Code Snippets >> Visual Studio >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Demonstrate verbatim literal strings

Posted By:SanthoshNathan       Posted Date: November 01, 2010    Points: 15    Category: Visual Studio    URL: http://www.dotnetspark.com  

Demonstrate verbatim literal strings

using System; 
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#.""")


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend