[thelist] Puzzled by ue of @ in C#

Arthur Maloney ArthurM at seipas.com
Sat Jan 19 01:38:30 CST 2008


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




More information about the thelist mailing list