Javatpoint Logo
Javatpoint Logo

LINQ Min() Function

MIN () function of LINQ is useful to get the minimum value from a collection or list. LINQ has made it very easy to find the minimum value from a given data source. In coding, we have to write a bit code to get the minimum value from the list of available values.

LINQ Min () Function Syntax in C#

From the above syntax, we are getting the minimum value from the "a" list using the LINQ Min () function.

Now, we will see the complete example of using the LINQ Min() function to get the minimum value from the list in C# applications.

From the above example, it will show the integer array "a" and we are finding the minimum value from the given array using LINQ() function.

Now we run the application, and it will display the minimum value from the list, as shown below in the output in the console window.

Output

LINQ Min() Function




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA