<p>I have a <code>List&lt;int&gt;</code> and a <code>List&lt;customObject&gt;</code>. The customObject class has an ID property. How can I get a <code>List&lt;customObject&gt;</code> containing only the objects where the ID property is in the <code>List&lt;int&gt;</code> using LINQ?</p>

<p><strong>Edit</strong>: I accepted Konrads answer because it is easier/more intuitive to read.</p>

Untested, but it'll be something like this:
```
```
var matches = from o in objList 
                  join i in intList on o.ID equals i
                  select o;
```
```
@Konrad just tested it, and it does work - I just had a typo where I'd written "i.ID" rather than "i".