title: Need to solve C# Error u003Ef__AnonymousType0
body: <p>I have a c# code as below, Its showing error at <code>IEnumerable&lt;\u003C\u003Ef__AnonymousType0</code> 
  Can someone tell me how to solve it.</p>
  
  <pre><code>dataSet = this.GetData.getInfo("SELECT b.nBatchID, td.F_Name &amp;' '&amp; td.M_Name &amp;' '&amp; td.L_Name AS StaffName, b.BatchName FROM (Batch AS b LEFT JOIN BatchTrainer AS bt ON b.nBatchID = bt.nBatchId) LEFT JOIN TrainerDetails AS td ON bt.TrainerId = td.TrainerID", "Batch");
              IEnumerable&lt;\u003C\u003Ef__AnonymousType0&lt;object, string, string&gt;&gt; datas = dataSet.Tables[0].Copy().AsEnumerable().GroupBy&lt;DataRow, object&gt;((Func&lt;DataRow, object&gt;) (row =&gt; row["nBatchId"])).Select(g =&gt;
              {
                var data = new{ id = g.Key, text = string.Join(",", g.Select&lt;DataRow, string&gt;((Func&lt;DataRow, string&gt;) (r =&gt; r["StaffName"].ToString())).ToArray&lt;string&gt;()), Batch = g.Select&lt;DataRow, string&gt;((Func&lt;DataRow, string&gt;) (r =&gt; r["BatchName"].ToString())).FirstOrDefault&lt;string&gt;() };
                return data;
              });
              table.Columns.Add("nBatchId", typeof (int));
              table.Columns.Add("StaffName", typeof (string));
              table.Columns.Add("BatchName", typeof (string));
              foreach (var data in datas)
                table.Rows.Add(data.id, (object) data.text, (object) data.Batch);
              dataSet.Tables.Clear();
              dataSet.Tables.Add(table);
  </code></pre>