If I have a list of an object called Spendline with two properties, Year and Amount and BudgetID. How can I best convert the following List:
Year Amount BudgetID
2000 100 1
2001 100 1
2002 100 1
2003 100 1
2001 100 2
2002 100 2
2003 100 2
To this:
Year Amount
2000 100
2001 200
2002 200
2003 200
Using Linq?