Submitted by: Srinath M S(srinath_ms@yahoo.com)

Friday Aug 17th 2018 by Srinath M S

Language: .NET, Expertise: Beginner - Learn how to escape certain characters in C#.

Use the "@" symbol to prefix a string that has characters. You do not have to escape the characters in the string. For example, instead of:

Var filePathString = "C:\\mydocs\\share\\audit.docx";

We could write it as:

Var filePathString = @"C:\mydocs\share\audit.docx";
Mobile Site | Full Site