There are a couple of items which make this type of feature difficult. One of the primary ones being overloaded methods.
class Example {
public void Method() {}
public void Method(int p1) {}
}
Which MethodInfo
would the following return?
var info = memberinfo(Example.Method);
As Wesley has pointed out though, Eric's Blog has the full discussion on this issue.