C# code to check if the items in List matches the condition using LINQ

Amatya
Posted by Amatya under LINQ category on | Points: 40 | Views : 437
C# code to check if the items in List matches the condition using LINQ
var dnfLst_1 = new List<int>() { 10 20 30 40};
bool dnfRes = dnfLst_1.TrueForAll(x => x < 100);


dnfRes True

Comments or Responses

Login to post response