I have a `List` that is defined as:

```
List<Dictionary<string,object>>()

```

This `List` gets populated in a `foreach loop` and basically contains `property names and values` from `ProperyInfo`.

In another `foreach loop`, I want to iterate through properties again and check if the there is a dictionary that contains a key corresponding to a value I'm looking for. For example:

```
foreach(var item in controls)
{
    if(item !=null && list.Contains(...)) //What do I put in here
    {

    }
    else
    {

    }

}

```

`controls` is a `List<Control>` where `Control` is class with one property `Name`. `item` refers to one `Control`.

I thought about doing `list.Contains(item.Name)`, but this obviously does not work.