var VarCost = myList.GroupBy(x => x.ItemType).Select(g => new { ItemType= g.Key, Sum = g.Sum(x => x.ItemAmount) });
Thanks and Regards V.SaratChand Show difficulties that how difficult you are
var totalCost = Items.Select(k => k.cost).Sum()
Login to post response