The @ symbol tells the string constructor to ignore escape characters and line break
The following two strings are therefore identical:
-
-
string p1 = "\\\\My Documents\\My Files\\";
-
string p2 = @"\\My Documents\My Files\";
The @ symbol tells the string constructor to ignore escape characters and line break
The following two strings are therefore identical:
This entry was posted on Thursday, April 23rd, 2009 at 10:31 am and is filed under C#. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS)