用双斜线完整路径(C#)

问题描述:

是否有可能通过使用获得双斜线完整路径 Path.GetFullPath ?事情是这样的:

Is it possible to get a full path with double slash by using Path.GetFullPath? Something like this:

C:\\Users\\Mammamia\\Videos\\Documents\\CFD\\geo_msh\\cubeOp.txt

而不是这样的:

C:\Users\Mammamia\Videos\Documents\CFD\geo_msh\cubeOp.txt

或者有没有其他的方法?

Or is there any other method?

你的意思呢?

Path.GetFullPath(path).Replace(@"\", @"\\");