title: How to return value with anonymous method?
body: <p>This fails </p>
  
  <pre><code>string temp = () =&gt; {return "test";};
  </code></pre>
  
  <p>with the error</p>
  
  <blockquote>
    <p>Cannot convert lambda expression to type 'string' because it is not a delegate type</p>
  </blockquote>
  
  <p>What does the error mean and how can I resolve it?</p>