Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get current MethodBase through reflection

Can I get the current method's MethodInfo somehow?

like image 868
Boris Callens Avatar asked Mar 11 '09 12:03

Boris Callens


2 Answers

System.Reflection.MethodBase.GetCurrentMethod()

Found it myself after some screwing around with the reflection namespace...

like image 72
Boris Callens Avatar answered Oct 19 '22 18:10

Boris Callens


Try the System.Reflection.MethodBase.GetCurrentMethod static method.

like image 33
Rune Grimstad Avatar answered Oct 19 '22 18:10

Rune Grimstad