SUM values from a collection

How can I SUM values in a collection

What is the collection type?

If it is a list then

int sum = lstNumbers.Sum

Karthik Byggari

1 Like

Can you please confirm the collection Type as asked by @KarthikByggari and what is the Datatype of the collection? thanks

The type is a list, i try your solution and its works

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.