Javatpoint Logo
Javatpoint Logo

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA