Enumerable.Aggregate : Enumerable « System.Linq « C# / C Sharp by API






Enumerable.Aggregate

 


using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;

public class MainClass {
    public static void Main() {
        int[] numbers = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
        var query = numbers.Aggregate((a, b) => a * b);
    }
}

   
  








Related examples in the same category

1.Enumerable.Average()
2.Enumerable.Cast
3.Enumerable.Count()
4.Enumerable.DefaultIfEmpty
5.Enumerable.Distinct()
6.Enumerable.ElementAt
7.Enumerable.ElementAtOrDefault
8.Enumerable.ElementsAfterSelf
9.Enumerable.Empty
10.Enumerable.First
11.Enumerable.OrderBy
12.Enumerable.Range
13.Enumerable.Repeat
14.Enumerable.Where