title: return List in a local method (C#)
body: <p>I'm a beginner in C#, just a question on returning a List object, if I write a method like this:</p>
  
  <pre><code>public List&lt;string&gt; GetLatestReviews()
  {
     List&lt;string&gt; temp = new List&lt;string&gt;('good','average')
     return temp;
  }
  </code></pre>
  
  <p>Is it legal? Because we can't return a object pointer in a local method, the garbage collect will erase the local object after the return?</p>