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
Post a Comment