Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

linq sum

int[] numbers = new int[] { 10, 30, 50, 40, 60, 20, 70, 90, 80, 100 };
int total = (from num in numbers select num).Sum();
 
PREVIOUS NEXT
Tagged: #linq #sum
ADD COMMENT
Topic
Name
2+1 =