Rob*_*Rob 3 .net c# namespaces
什么是正斜杠"/"的.net名称空间常量
所以代替:
somePath + "/" + someFile
Run Code Online (Sandbox Code Playgroud)
我可以:
somePath + .net.namespace.forwardslash + someFile
Run Code Online (Sandbox Code Playgroud)
没有太大的区别,但可能更整洁?
axe*_*l_c 10
System.IO.Path.DirectorySeparatorChar是你想要的.
顺便说一句,更好的方法是使用System.IO.Path.Combine(somePath,someFile).
| 归档时间: |
|
| 查看次数: |
1153 次 |
| 最近记录: |