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