PDA

Click to See Complete Forum and Search --> : [2.0] putting " in a multiline?


high6
Apr 13th, 2007, 05:20 PM
well I am using @"" to do a multi-line string in the IDE but the problem is that the next " ends it. Is there a way around this because I rather not edit a huge ass string to allow " by using \".

jmcilhinney
Apr 13th, 2007, 08:52 PM
In a verbatim string literal, i.e. one prefixed with an '@' symbol, you can escape double-quotes the same way you do in VB, i.e. with another double quote, e.g.MessageBox.Show(@"He said ""Hello"" to me.");