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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -