About 4,550,000 results
Open links in new tab
  1. Enumerable.Aggregate Method (System.Linq) | Microsoft Learn

    This overload of the Aggregate method isn't suitable for all cases because it uses the first element of source as the initial aggregate value. You should choose another overload if the return …

  2. LINQ Aggregate Method in C# with Examples - Dot Net Tutorials

    In this article, I will discuss the LINQ Aggregate Method in C# with Examples. Please read our previous article before proceeding to this article, where we discussed the LINQ Count Method …

  3. C#: How to use the Enumerable.Aggregate method - Stack Overflow

    Dec 15, 2015 · Basically, the first argument to Aggregate is an initializer, which is used as the first value of "i" in the function passed in the second argument. It'll iterate over the list, and each …

  4. LINQ Aggregate - C# Tutorial

    In this tutorial, you'll learn how to use the LINQ Aggregate () method to perform a cumulative operation on a sequence.

  5. C# Program to Show the Usage of LINQ Aggregate () Method

    Jul 23, 2025 · In simple words, the Aggregate () method implements a number of operations for each of the elements in the given collection by keeping the track of the actions that have been …

  6. C# - Aggregate Example - Dot Net Perls

    Aug 5, 2025 · The C# Aggregate() method applies a method to each element (calling the function on successive elements). We specify the function with a Func (often with lambda syntax).

  7. Using CountBy and AggregateBy in C# 13 / .NET 9 | Grant Winney

    Dec 3, 2024 · A few weeks ago, when they announced the official release of C# 13 / .NET 9, we got a couple new additions to LINQ – CountBy and AggregateBy. Let’s see how to use them.

  8. Enumerable.AggregateBy Method (System.Linq) | Microsoft Learn

    Applies an accumulator function over a sequence, grouping results by key.

  9. LINQ Aggregate - csharp-examples.net

    Aggregate method applies a function to each item of a collection. For example, let's have collection { 6, 2, 8, 3 } and the function Add (operator +) it does ( ( (6+2)+8)+3) and returns 19.

  10. c# - LINQ Aggregate algorithm explained - Stack Overflow

    Aug 18, 2011 · The easiest-to-understand definition of Aggregate is that it performs an operation on each element of the list taking into account the operations that have gone before. That is to …