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 \".
Printable View
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 \".
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.C# Code:
MessageBox.Show(@"He said ""Hello"" to me.");