title: How to convert a data table to a list of strongly typed objects in C# using LINQ?
body: <p>I am doing a WPF Application written with C# code, My problem is I need to convert a data table from a dataset but sadly it throws me the exception "<strong><em>Cannot convert lambda expression to type 'string' because it is not a delegate type</em></strong>" can you guys please help me with this.(I had the code which throws me the exception)</p>
  
  <pre><code>        SqlDataAdapter da = new SqlDataAdapter(commBuildingSelector);
          DataSet ds = new DataSet();
          da.Fill(ds);
          DataTable myTable = ds.Tables[0];
          List&lt;Building&gt; buildings = new List&lt;Building&gt;();
          buildings = (from bl in myTable
                      select new Building()
                      {
                          BuildingID = bl.BuildingID,
                          BuildingName = bl.BuildingName,
                          isActive = bl.isActive,
                          LastEditDate = bl.LastEditDate,
                          LastEditUser = bl.LastEditUser
                      }).ToList();
          return new List&lt;Building&gt;();
  </code></pre>