title: Return list using select new in LINQ
body: <p>This is my method which gives me error.</p>
  <pre><code>public List&lt;Project&gt; GetProjectForCombo()
  {
      using (MyDataContext db = new MyDataContext (DBHelper.GetConnectionString()))
      {
          var query = from pro in db.Projects
                      select new { pro.ProjectName, pro.ProjectId };
  
          return query.ToList();
      }
  }
  </code></pre>
  <p>If i change it with this:</p>
  <pre><code>public List&lt;Project&gt; GetProjectForCombo()
  {
      using (MyDataContext db = new MyDataContext (DBHelper.GetConnectionString()))
      {
          var query = from pro in db.Projects
                      select pro;
  
          return query.ToList();
      }
  }
  </code></pre>
  <p>Then it works fine with no errors.</p>
  <p>Can you please let me know that how I can return only <code>ProjectId</code> and <code>ProjectNam</code>?</p>