In my code:
protected readonly string DropFolder = @"\\SharedFolder\Subfolder";
In ILSpy:
protected readonly string DropFolder = "\\\\SharedFolder\\Subfolder";
Am I missing something?
In my code:
protected readonly string DropFolder = @"\\SharedFolder\Subfolder";
In ILSpy:
protected readonly string DropFolder = "\\\\SharedFolder\\Subfolder";
Am I missing something?
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.