var summationResult =
from p in BreakdownClass
select into g
{
previousPos = g.Sum(p => p.tPrevPos),
previousPL = g.Sum(p => p.tPrevPL),
topPos = g.Sum(p => p.tTopTrd),
topPL = g.Sum(p => p.tTopPL),
netPos = g.Sum(p => p.tNetPos),
netPL = g.Sum(p => p.tNetPL)
};
var summationResult =
BreakdownClass.Sum(x => x.tPrevPL),
BreakdownClass.Sum(x => x.tPrevPos),
;
Give it a try like this.
Open in new window