Query expression to get minimal item in the list using LINQ

Amatya
Posted by Amatya under LINQ category on | Points: 40 | Views : 1078
Query expression to get minimal item in the list using LINQ

var dnfList = new List<int> { 100, 10, 200, 150 };
int dnfMin = (from dnf in dnfList select dnf).Min();



Result:
dnfMin : 10

Thanks

Comments or Responses

Login to post response