查看绝对路径

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

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

posted @ 2021-11-04 10:20  二维一加零  阅读(89)  评论(0)    收藏  举报