Skip to main content
1 of 4
lomaxx
  • 116.2k
  • 58
  • 148
  • 181

The @ tells the compiler to ignore any escape characters in a string.

just wanted to clarify this one... it doesn't tell it to ignore the escape characters, it actually tells the compiler to interperate the string as a literal.

if you have

string s = @"cat dog fish" 

it will actually print out as

cat
dog
fish

lomaxx
  • 116.2k
  • 58
  • 148
  • 181