title: Differences between IQueryable, List, IEnumerator?
body: <p>I am wondering what the difference between IQueryable, List, IEnumerator is and when I should use each one?</p>
  
  <p>For instance when using Linq to SQL I would do something like this:</p>
  
  <pre><code>public List&lt;User&gt; GetUsers()
  {
     return db.User.where(/* some query here */).ToList();
  }
  </code></pre>
  
  <p>Now I am wondering if I should be using IQueryable instead. I am unsure of the advantages of using it over the list.</p>