This is because a backslash in C# is used to mark the next character as its literal interpretation. For example if you wanted a quote inside your string you would precede it with \
to prevent the string being closed early:
var myString = "This is my string with \"quotes\"";
This is called escaping. In order to display a blackslash within a string you either need to escape it with another slash:
static string path = "C:\\Path";
Or precede the string with the @ symbol, which suppresses the backslash escape mechanism:
static string path = @"C:\Path";