Posted By

hoffstein on 10/23/08


Tagged

Linq


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

hoffstein
umang_nine


LINQ Conditional Sum


 / Published in: C#
 

  1. MyList.Where(x => x.Product == "Apple").Sum(x => x.TotalSales)

Report this snippet  

You need to login to post a comment.