In addition, I doubt that the result of @""" would be \". That is probably
just how the debugger is representing it. I suspect you are getting just
what you want -- a string of Length 1 that contains a quotation mark.
string quote = @"""; would have the same result as I suggested and the
debugger would show the value of both as "\"".
--Bob
"Bob Grommes" <bo*@bobgrommes.com> wrote in message
news:uS**************@TK2MSFTNGP14.phx.gbl...
Escape the quote:
string quote = "\"";
--Bob
"E-Cube" <EC***@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com... Hello all,
I am creating a string that contains " in it. However when I build the
string I use @"""", and the result of this is \". any help would be
appreciated.
Thanks
E-Cube