string dllPath = Path.GetDirectoryName(new Uri(this.GetType().Assembly.CodeBase).AbsolutePath;
静态函数中则不可用:
string dllPath = Path.GetDirectoryName(new Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath);
本文深入解析了2019年独角兽企业对Python工程师的招聘标准,提供了详细的路径和代码示例,帮助开发者更好地理解和准备面试。
string dllPath = Path.GetDirectoryName(new Uri(this.GetType().Assembly.CodeBase).AbsolutePath;
静态函数中则不可用:
string dllPath = Path.GetDirectoryName(new Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath);
转载于:https://my.oschina.net/yuekunge/blog/611000
1万+
1970

被折叠的 条评论
为什么被折叠?