I\'ve been using string interpolation and loving it, however I have an issue where I am trying to include a backslash in my output, but am not able to get it to work.
If I did not missunderstood. The solution is real simple
var domain = "mydomain"; var userName = "myUserName"; var combo = $"{{{domain}}}\\{{{userName}}}"; Console.WriteLine(combo);
I share the birdamongmen answer as well good reference provided there. Hope it is helpfull to you. My 5 cents