|
Strings enclosed in @ begin with @ and are enclosed in double quotes. E.g:
Vs help: ms-help: //MS.VSCC.2003/MS.MSDNQTR.2003FEB.2052/csref/html/vclrfString.htm
@ "good morning" // a string literal
The advantage of using @ is that the escape sequence is "not" processed, so you can easily write out a string, such as a fully qualified file name:
@ "c:\Docs\Source\a.txt" // rather than "c:\\Docs\\Source\\a.txt"
To include a double quote in a string enclosed in @, use two pairs of double quotes:
@ "" "Ahoy!" "Cried the captain." // "Ahoy!" Cried the captain.
Another use of the @ symbol is to use a referenced (/ reference) identifier that happens to be a C # keyword. |
|