how do you find if a list has something in C# code example Example: c# check list of objects for value var matches = myList.Where(p => p.Name == nameToExtract);