title: Best way to dispose a list
body: <p>I am having List object. How can I dispose of the list?</p>
  
  <p>For example,</p>
  
  <pre><code>List&lt;User&gt; usersCollection =new List&lt;User&gt;();
  
  User user1 = new User();
  User user2 = new User()
  
  userCollection.Add(user1);
  userCollection.Add(user2);
  </code></pre>
  
  <p>If I set <code>userCollection = null;</code> what will happen?</p>
  
  <pre><code>foreach(User user in userCollection)
  {
      user = null;
  }
  </code></pre>
  
  <p>Which one is best?</p>