Answers for "c# add \ in a string without escaping"

C#
0

c# add \ in a string without escaping

//Initialize with a regular string literal.
string oldPath = "c:\\Program Files\\Microsoft Visual Studio 8.0";

// Initialize with a verbatim string literal.
string newPath = @"c:\Program Files\Microsoft Visual Studio 9.0";
                 ↑
Posted by: Guest on October-19-2021

Code answers related to "c# add \ in a string without escaping"

C# Answers by Framework

Browse Popular Code Answers by Language