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.
--
Kai Brinkmann [MSFT]
Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Pete Davis" <pd******@NOSPAM.hotmail.com> wrote in message
news:m6********************@giganews.com...
Use \"
as follows:
string myString = "This string has \"quotes\" in it";
"fred" <an*******@discussions.microsoft.com> wrote in message
news:18****************************@phx.gbl... Hi,
is there a way to put " (double quote) into a verbatin
string?
thank you