title: How do I call DynamicInvoke on an Expression<Action<T>> using Compile?
body: <p>Why doesn't this work?</p>
  
  <pre><code>namespace InvokeTest
  {
      public class MethodInvoker
      {
          public static void Execute&lt;T&gt;(Expression&lt;Action&lt;T&gt;&gt; call)
          {
              // Parameter count mismatch
              call.Compile().DynamicInvoke();
  
              // Also attempted this:
              //call.Compile().DynamicInvoke(1);
              // but it threw: "Object of type 'System.Int32' cannot be converted to type 'InvokeTest.TestClass'."
          }
      }
  
      public class TestClass
      {
          public TestClass()
          { }
  
          public void DoSomething(int num)
          {
              System.Console.WriteLine("It works");
          }
  
          public void KickOff()
          {
              MethodInvoker.Execute&lt;TestClass&gt;(m =&gt; m.DoSomething(1));
          }
      }
  }
  </code></pre>