📜  c# 在不转义的字符串中添加 \ - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:17.960000             🧑  作者: Mango

代码示例1
//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";
                 ↑