Can I add a list of integers directly without looping through it?
Posted
by VJ
on Stack Overflow
See other posts from Stack Overflow
or by VJ
Published on 2010-06-07T22:04:55Z
Indexed on
2010/06/07
22:12 UTC
Read the original article
Hit count: 156
c#
I have a List of integers -
List<int> intlist= new List<int>();
Can I just say -
intlist.Sum();//I know sum() is already there as a function but I dont know how I can use it
and get the sum of that list without looping through it.
© Stack Overflow or respective owner