1 var goodsTotalPrice = checkedGoodsList.Select(s => new 2 { 3 TotalPrice = s.number * s.retail_price 4 }) 5 .Sum(s => s.TotalPrice);
1 var goodsTotalPrice = checkedGoodsList.Select(s => new 2 { 3 TotalPrice = s.number * s.retail_price 4 }) 5 .Sum(s => s.TotalPrice);