C# code to check the item in the list exists or not using LINQ

Amatya
Posted by Amatya under LINQ category on | Points: 40 | Views : 412
C# code to check the item in the list exists or not using LINQ
var dnfLst_1 = new List<int>() { 10 20 30 40};
bool res = dnfLst_1.Exists(dnf => dnf == 40);



Output True

Comments or Responses

Login to post response