string path = Path.GetDirectoryName(
Assembly.GetAssembly(typeof(MyClass)).CodeBase);
output:
file:\d:\learning\cs\test\test.xml
What's the best way to return only d:\learning\cs\test\test.xml
file:\\
will throw exception when I call doc.Save(returnPath)
,however doc.Load(returnPath)
; works well. Thank you.