public class PricePublicModel
{
public PricePublicModel() { }
public int PriceGroupID { get; set; }
public double Size { get; set; }
public double S
If you have a list and you want to know where within the list an element exists that matches a given criteria, you can use the FindIndex instance method. Such as
int index = list.FindIndex(f => f.Bar == 17);
Where f => f.Bar == 17 is a predicate with the matching criteria.
In your case you might write
int index = pricePublicList.FindIndex(item => item.Size == 200);
if (index >= 0)
{
// element exists, do what you need
}