Checking if a list of objects contains a property with a specific value then find the value result code example
Example: check if list of objects contains value c#
bool contains = pricePublicList.Any(p => p.Size == 200);
bool contains = pricePublicList.Any(p => p.Size == 200);