F
fred
Hi,
is there a way to put " (double quote) into a verbatin
string?
thank you
is there a way to put " (double quote) into a verbatin
string?
thank you
fred said:is there a way to put " (double quote) into a verbatin
string?
Kai Brinkmann said:Also, remember you can use @ if you don't want to have to escape certain
characters (e.g. backslashes)
Thus, @"C:\Temp" is equivalent to "C:\\Temp" as both are interpreted as
C:\Temp. That won't help you for double-quotes, of course, since an
unescaped double-quote will be interpreted as a delimiter. So you have to
escape it just as Pete indicates. But the @ is useful for other string
literals.