title: Getting target of Action
body: <p>I have created the fallowing Sample-Code:</p>
  
  <pre><code>class Program {
      static void Main(string[] args) {
          var x = new ActionTestClass();
          x.ActionTest();
          var y = x.Act.Target;
      }
  }
  
  public class ActionTestClass {
      public Action Act;
      public void ActionTest() {
          this.Act = new Action(this.ActionMethod);
      }
  
      private void ActionMethod() {
          MessageBox.Show("This is a test.");
      }
  }
  </code></pre>
  
  <p>When I do this on this way, y will an object of type ActionTestClass (which is created for x). Now, when I change the line</p>
  
  <pre><code>this.Act = new Action(this.ActionMethod);
  </code></pre>
  
  <p>to</p>
  
  <pre><code>this.Act = new Action(() =&gt; MessageBox.Show("This is a test."));
  </code></pre>
  
  <p>y (the Target of the Action) will be null. Is there a way, that I can get the Target (in the sample the ActionTestClass-object) also on the way I use an Anonymous Action?</p>