Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

NEWBIE QUICKIE: Why the @ ?

Dear Experts:

I'm just learning C#.  I found this example on the web:

 string updateString = @"
     update Categories
     set CategoryName = 'Other'
     where CategoryName = 'Miscellaneous'";

What's the "@" for?  (It's part of an ADO.NET explanation, if that helps.)  It's not a typo, as it appears in the same position in similar statements...

Thanks!
--BrianMc1958
0
BrianMc1958
Asked:
BrianMc1958
1 Solution
 
pauljk1619Commented:
It's what's called a verbatim string literal.  

It will not process simple escape sequences.  
0
 
BrianMc1958Author Commented:
Thanks.  Looks like a nice little improvement from my old Java world...
--BrianMc1958
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now