Simple program to get the minimum value from the List

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 147
Simple program to get the minimum value from the List


var dnfnum = new List<int> { 10, 20, 15, 5 };
int dnfmin = dnfnum .Min();


Result : 5

Thanks

Comments or Responses

Login to post response