title: Return a value from an event?
body: <p>So, I have an event called <code>CalculateNewHeight</code>, which I've attached to an <code>action</code> called <code>OnHeightDataLoaded</code>:</p>
  
  <p><code>renderer.OnHeightDataLoaded += ((heightData) =&gt; CalculateNewHeight(heightData, instance));</code></p>
  
  <p>...but ideally at this point in the code it'd return a value, rather than just call another function, for example:</p>
  
  <p><code>int newData = renderer.OnHeightDataLoaded += ((heightData) =&gt; CalculateNewHeight(heightData, instance));</code></p>
  
  <p>Obviously that code's wrong, but you get what I mean. Using the event more like  async <code>await</code>. Is that possible?</p>
  
  <p>Haha, I'm quite new to C#, so don't hesitate to let me know if I'm going about this all wrong.</p>