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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -