从MethodInfo获取装配路径

Raz*_*zer 1 .net c# reflection

我有一个MethodInfo来自类库的方法.是否可以通过assembly该信息确定所在的路径?

void foo(MethodInfo methodInfo)
{ 
    // Get the path of the DLL here
   ...
Run Code Online (Sandbox Code Playgroud)

spe*_*der 5

怎么样

methodInfo.DeclaringType.Assembly.Location
Run Code Online (Sandbox Code Playgroud)