Answers for "linq if any contains"

2

linq object list contains

using System.Linq;

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

linq contains

buildingStatus.Any(item => item.GetCharValue() == v.Status)
Posted by: Guest on July-11-2021

Browse Popular Code Answers by Language