查看绝对路径

Program是一个类;这行代码的结果是找到这个类的绝对路径;

string test = typeof(Program).Assembly.Location;

posted @ 2021-11-04 10:20  艾特-天空之海  阅读(71)  评论(0编辑  收藏  举报