0

In my code:

protected readonly string DropFolder = @"\\SharedFolder\Subfolder";

In ILSpy:

protected readonly string DropFolder = "\\\\SharedFolder\\Subfolder";

Am I missing something?

IrishChieftain
  • 15,108
  • 7
  • 50
  • 91

1 Answers1

1

Some characters are stored as the corresponding escape sequences in CIL, and \ is one of them (stored as \\). These two strings are equal: @"\" == "\\".

Read this topic for more details.

Community
  • 1
  • 1
Gabriel Negut
  • 13,860
  • 4
  • 38
  • 45