lmarkov

Declare Two Strings In Two Ways

Nov 20th, 2012
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. using System;
  2.  
  3. class DeclareTwoStringsInTwoWays
  4. {
  5.     static void Main()
  6.     {
  7.         string text1 = "The \"use\" of quatations causes difficulties.";
  8.         string text2 = @"The ""use"" of quatations causes difficulties.";
  9.  
  10.         Console.WriteLine("Text using \\:\n{0}\n",text1);
  11.         Console.WriteLine("Text using @:\n{0}\n", text2);
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment