LINQ – Average with C# Programming Example – Programming, Pseudocode Example, C# Programming Example
C# C# LINQ Examples Linq

LINQ – Average with C# Programming Example

In this article, I am going to discuss the Linq Average Method in C# with examples. 

Average extension method calculates the average of the numeric items in the collection. Average method returns nullable or non-nullable decimal, double or float value.

The following example demonstrate Agerage method that returns average value of all the integers in the collection.

Example:

Output:

Average Value = 55

Example 2:

Output:

Average Age of Student: 17.4

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: