Answers for "best way to check if list has item by LINQ"

2

linq object list contains

using System.Linq;

bool exists = list.Any(x => x.surname == "Smith");
Posted by: Guest on August-03-2020

Code answers related to "best way to check if list has item by LINQ"

Browse Popular Code Answers by Language