Can you Sum() more than one value in a single linq statement.without grouping? - LINQ Learning.com


Can you Sum() more than one value in a single linq statement.without grouping?

Posted by Programmer's Goodies on September 11, 2011

Given class: public class FooAmounts int Id decimal Month1 decimal Month2 ... decimal Month12 decimal Year2 decimal Year3 decimal Future I have IEnumerable<FooAmounts> with 5 entries (Id’s 1-5 funnily enough!) I’d like to create a single new FooAmounts which has the totals of each month/year

... [read more]

Rating

not rated

Reviews

There are currently no comments or reviews.

Submit a review:

Login required.