how to search if an object list has a value in c# 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);