title: any equivalent to VB.net function name as return value in C#?
body: <p>In vb.net there is a weird approach that you can use the function name as the result variable..</p>
  
  <p>example:</p>
  
  <pre><code>Function Foo(ByVal bar As Integer) As List(Of Integer)
      Foo = New List(Of Integer)
      Foo.Add(bar + 1)
  End Function
  </code></pre>
  
  <p>As far as i know, in C# you have to:</p>
  
  <pre><code>List&lt;int&gt; foo(int bar) 
  {
       var result = new List&lt;int&gt;();
       result.Add(bar + 1);
       return result;
  }
  </code></pre>
  
  <p>I'm not sure if it's by design or i just don't know the right way to do this..
  Please enlight me!</p>
  
  <p>Thanks in advance,
  Eitan.</p>