Verbatim String Literals in C#

C# supports Verbatim String literals which begin with @ followed by the string data and doesn’t have a escape sequences within the string.

This might be specially useful when you want to represent the file path .

Below is a representation of Verbatim String Literals in C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string normalString = "C:\\TEST";
            // Verbatim String
            string VerbatimString = @"C:\TEST";
        }
    }
}