【发布时间】:2011-02-26 05:03:22
【问题描述】:
string path = Path.GetDirectoryName(
Assembly.GetAssembly(typeof(MyClass)).CodeBase);
输出:
文件:\d:\learning\cs\test\test.xml
仅返回 d:\learning\cs\test\test.xml
的最佳方法是什么file:\\ 会在我调用 doc.Save(returnPath) 时抛出异常,但是 doc.Load(returnPath);效果很好。谢谢。
【问题讨论】: