c# linq list get element that exist code example Example: linq object list contains using System.Linq; bool exists = list.Any(x => x.surname == "Smith");