1
I have a class ListaBid with several objects, in this class there are attributes Partnumber(Chave), Quantidade and SaldoPartnumber.
I can have X objects with the partnumber Y and other X objects with Partnumber Z
I would like to sum up the attribute Saldopartnumber of all items that has the value of Partnumber equal.
var itensPedido = (from l in listaBID
select new Pedido.sItemPedido
{
CodigoProduto = l.Partnumber,
SaldoPartnumberSap = l.SaldoPartnumberSap,
Saldo = l.Saldo,
}).ToList();
