Can I add a list of integers directly without looping through it?
- by VJ
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.