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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -