score:2

Accepted answer

Cast to a LambdaExpression and call Compile on it. It will return an untyped delegate. You can...

  • ...cast this delegate to one of the Func/Action types
  • ...inspect its structure using reflection
  • ...use Delegate.DynamicInvoke to call it

Related Articles