c# - What does the @ sign mean in the following - Class.Field = @"your text here"; - -


possible duplicate:
what “@” means in c#

what sign @ mean in following:

class.field = @"your text here";

i came across in piece of code, compiler not seem complain... i've searched around no avail...

what @ mean?

it indicates verbatim string literal. can use escapes aren't treated such:

string path = "c:\\documents , settings\\username\\my documents"; 

becomes:

string path = @"c:\documents , settings\username\my documents"; 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -