var z = rkmxList.GroupBy(p =>p.lydh ).Select(p=>new {name=p.Key,dd=p.Sum(o=>o.rksl)}) ;
foreach (var item in z)
{
int ss = (int)item.dd;
}
var z = rkmxList.GroupBy(p =>p.lydh ).Select(p=>new {name=p.Key,dd=p.Sum(o=>o.rksl)}) ;
foreach (var item in z)
{
int ss = (int)item.dd;
}