Boris Callens
Boris Callens

Reputation: 93407

Get current MethodBase through reflection

Can I get the current method's MethodInfo somehow?

Upvotes: 6

Views: 3405

Answers (2)

Rune Grimstad
Rune Grimstad

Reputation: 36340

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

Upvotes: 1

Boris Callens
Boris Callens

Reputation: 93407

System.Reflection.MethodBase.GetCurrentMethod()

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

Upvotes: 17

Related Questions