[thelist] Puzzled by ue of @ in C#
Chris Anderson
Chris at activeide.com
Sat Jan 19 11:37:03 CST 2008
> I've notice a few SQL examples like:
>
> // query 1
> string sql1 = @"
> select
> *
> from
> customers
> ";
>
> I'm puzzled by the use of @. Is it doing anything?
Yes - it's embedding the carriage returns
Chris
-----Unmodified Original Message-----
Hello thelist,
I've used @ for escaping e.g string str1 = @"C:\folder\file.txt";
to convert it to C:\\folder\\file.txt
I've notice a few SQL examples like:
// query 1
string sql1 = @"
select
*
from
customers
";
I'm puzzled by the use of @. Is it doing anything?
--
Best regards,
Arthur mailto:ArthurM at seipas.com
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list