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