In LINQ, you can find the minimum element of the given sequence by using Min() function. This method provides the minimum element of the given set of values. It does not support query syntax in C#, but it supports in VB.NET. It is available in both Enumerable and Queryable classes in C#. It returns null if all the elements present in the collection are null. It returns any type of data type means you can also use Min with the collection of a custom type(does not contain numeric value), but for this, you have to implement the IComparable interface. It can work with nullable, non-nullable decimal, double, floats, int, etc. values.
The sequence is: 20 45 50 79 90 79 89 100 567 29 Minimum Value: 20
Minimum salary of the employee: 20000
- LINQ | How to find the sum of the given Sequence?
- LINQ | How to find maximum value of the given sequence?
- LINQ | How to find average of the given sequence?
- LINQ | How to find aggregate of the given sequence?
- Count the number of element present in the sequence in LINQ?
- LINQ | Let Keyword
- LINQ | Set Operator | Except
- What is Query in LINQ?
- LINQ | Filtering Operator | where
- Aggregation Function in LINQ
- LINQ | Quantifier Operator | All
- LINQ | Set Operator | Union
- LINQ | Set Operator | Intersect
- LINQ | Element Operator | First
- LINQ | Query Syntax
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.