Home » LINQ Count() Function

LINQ Count() Function

by Online Tutorials Library

LINQ Count() function

COUNT () function in LINQ is used to count the number of elements in the list or collection.

Following is the syntax of defining the LINQ Count function to count the number of items in the list.

Syntax of LINQ Count () Function in C#

Here, we used Count () function to find out the count of the given collection “Num“.

When we execute the above LINQ Count () examples, we will get the result as shown below:

LINQ Count() function


You may also like