0

What does "@" mean before a string?

I saw this notation with paths:

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

But also with normal strings.

Francesco Bonizzi
  • 5,142
  • 6
  • 49
  • 88

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
  • 3
  • 15
  • 33