0

What does "@" mean before a string?

I saw this notation with paths:

string myfolder = @"C:\Users\";

But also with normal strings.

Francesco Bonizzi
  • 4,799
  • 6
  • 48
  • 80

1 Answers1

4

It means it's a literal string, so won't treat \ as an escape character, for example. This page should help you understand it better.

Joe
  • 1,214
  • 2
  • 15
  • 32