c# list check if list of objects cointains code example
Example 1: check if list of objects contains value c#
bool contains = pricePublicList.Any(p => p.Size == 200);
Example 2: c# check list of objects for value
var matches = myList.Where(p => p.Name == nameToExtract);