I am trying to get the sum of the value from list of list using linq ?my data is as below code
List> allData = new List<
Sticking as much as possible to the LINQ query language:
LINQ
var grouped = from d in allData group d by i[0] into g select new { Name = g.Key, Sum = g.Sum(i => int.Parse(i[2])) };