📌  相关文章
📜  c# 相同的文件夹路径 - C# 代码示例

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

代码示例1
//All these paths lead to the same file/folder
string path0 = "C:\\Users\\Usr\\source\\repos\\ConsoleAppMorzartV2\bin\\Debug\\Wave\\M1.wav";
string path1 = @"C:\Users\Usr\source\repos\ConsoleAppMorzartV2\bin\Debug\Wave\M1.wav";
string path2 = System.IO.Path.Combine(Environment.CurrentDirectory, @"Wave\M1.wav"); 
string path3 = @".\Wave\M1.wav";