##### What are LINQ Aggregate Functions in C#?

The LINQ Aggregate Functions are used to group together the values of multiple rows as the input and then return the output as a single value. So, in simple words, we can say that the aggregate function in C# is always going to return a single value.Â

##### When to use the Aggregate Functions in C#?

Whenever you want to perform some mathematical operations such as Sum, Count, Max, Min, Average, and Aggregate on the numeric property of a collection then you need to use the Linq Aggregate Functions.

##### What are the Aggregate Methods Provided by Linq?

The following are the aggregate methods provided by Linq to perform mathematical operations on a collection.

1. Sum():Â This method is used to calculate the total(sum) value of the collection.
2. Max():Â This method is used to find the largest value in the collection
3. Min():Â This method is used to find the smallest value in the collection
4. Average():Â This method is used to calculate the average value of the numeric type of the collection.
5. Count():Â This method is used to count the number of elements present in the collection.
6. Aggregate():Â This method is used to Perform a custom aggregation operation on the values of a collection.

In the next article, I am going to discuss theÂ Linq Sum Aggregate MethodÂ in detail.