"Ann Huxtable" <an**********@research-labs.de> wrote in message
news:dm**********@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com...
Why is it that sometimes strings used in C# are pre-pended by an '@'
character?. Is there any documentation on this (Google searches don't
bring anything useful - "c# + '@' + string variables" etc )
The '@' symbol is the verbatim string marker. Basically it means that the
string shouldn't be escaped, that is the escapable characters '\n' for
newline and '\r' for line return, for example, won't be processed.
If written to the console, for example,
"this\nis\na\nline"
would print:
this
is
a
line
@"this\nis\na\nline"
would print:
this\nis\na\nline