<p>I have an arraylist that contains items called Room. Each Room has a roomtype such as kitchen, reception etc.
I want to check the arraylist to see if any rooms of that type exist before adding it to the list.
Can anyone recommend a neat way of doing this without the need for multiple foreach loops?</p>

<p>(.NET 2.0)</p>

<hr>

<p>I havent got access to the linq technology as am running on .net 2.0. I should have stated that in the question.
Apologies</p>

```
```
if (!rooms.Any (r => r.RoomType == typeToFind /*kitchen, ...*/))
  //add it or whatever
```
```