Simple string question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Back
Top