title: Pass a return value back through an EventHandler
body: <p>Im trying to write to an API and I need to call an eventhandler when I get data from a table.  Something like this:</p>
  
  <pre><code>    public override bool Run(Company.API api)
      {
          SomeInfo _someInfo = new SomeInfo();
  
          if (_someInfo.Results == 1)
              return true;
          else
              return false;
  
          using (MyTable table = new MyTable(api))
          {
              table.WhenData += new EventHandler&lt;DataEventArgs&lt;Record&gt;&gt;(table_WhenData);
              table.WhenDead += new EventHandler&lt;EventArgs&gt;(table_WhenDead);
              table.Start();
          }
  
      public void table_WhenData(object sender, DataEventArgs&lt;Record&gt; e)
      {
          return true;
      }
  </code></pre>
  
  <p>The problem that Im having is I dont know how to pass a return value back from table_WhenData to the Run method.</p>
  
  <p>Ive tried many ways (like trying to pass _someInfo to the method) but I just cant seem to get the syntax right.</p>
  
  <p>Any suggestion is greatly appreciated.</p>