C# - 获取调用方法的大会? [英] C# - Get calling method's Assembly?

查看:114
本文介绍了C# - 获取调用方法的大会?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在C#中获得的要求方式的大会? (不是当前方式。)

Is there a way in C# to get the Assembly of the calling method? (Not the current method.)

即。我想在上面的调用堆栈中执行的程序集,1

i.e. I want the executing assembly, one above in the call stack.

推荐答案

试试这个

       Assembly.GetCallingAssembly();

这篇关于C# - 获取调用方法的大会?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆