c# - What is a verbatim string? -


this question has answer here:

from resharper, know that

var v = @"something"; 

makes v called verbatim string. , common scenario use it?

it means special chars don't need escaped, since informed compiler expect special characters, , ignore them. common use case might specify connection string:

string sqlserver = @"server01\sql";  

this valid, opposed in normal use backslash considered escape character.


Comments