How to write backslash in string code example Example: c# string with slash var s = "\\Tasks"; // or var s = @"\Tasks";