SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the Sum function, but you'll have to convert the strings to integers, like so:
Sum
int total = monValues.Sum(x => Convert.ToInt32(x));