Click here to Skip to main content
15,906,628 members

Comments by Dodido_72 (Top 1 by date)

Dodido_72 17-Mar-18 19:01pm View    
To clarify - I want to achieve this:
public virtual decimal ComputeTotalValue()=>
cartItemCollection.Sum(e => e.Item.Price * e.Quantity);
But because my item(aka product) has several prices I am stuck in
cartItemCollection.Sum(e => e.Item.Prices. * e.Quantity).
What shall I add to after Prices to get the value of the chosen instance so it can be multiplied with the quantity-value??