SyntaxFix
Write A Post
Hire A Developer
Questions
You can use LINQ for this
var list = new List<int>(); var sum = list.Sum();
and for a List of strings like Roy Dictus said you have to convert
list.Sum(str => Convert.ToInt32(str));