16
I am getting the result from LINQ query as var of type IEnumerable<T>
I want a CSV file to be created from the result from the LINQ
I am getting the result from the following query
var r = from table in myDataTable.AsEnumerable()
orderby table.Field<string>(para1)
group table by new { Name = table[para1], Y = table[para2] }
into ResultTable
select new
{
Name = ResultTable.Key,
Count = ResultTable.Count()
};