how to sum all elements in a list in c# code example Example: c# calculate sum of list double total = myList.Sum(item => item.Amount);