something in this direction should begin
for (methods in controller) typeof(ActionResult).IsAssignableFrom(methodInfo.ReturnType)
what is pseudo, not sure if these are the right properties and what isn't ... the only thing you need to be careful about is to get methods of type declaringtype only, not base types.
typeof(Controller).GetMethods( BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Public)
I hope that this is enough to be dangerous and start working.
neouser99
source share