Mega Code Archive

 
Categories / C# / Language Basics
 

The @ prefix turns off the processing of escape characters

using System; using System.Text; class StringApp {     static void Main(string[] args) {         string finalString = @"\n\tString file: 'C:\MyApp\Strings'";         Console.WriteLine(finalString);     } }