C# List of objects, how do I get the sum of a property
I have a list of objects. One property of the individual object entry is amount. How do I get the sum of amount? If my list was of type double I may be able to do something like this: double total = myList.Sum(); However I want to something similar to this, yet this syntax is … Read more