title: Select from a List<T>
body: <p>I'm sure there's an wasy way of doing this (I'm guessing one of the extension methods?), but am struggling to find it with Google.</p>
  
  <p>Basically I have a List of custom classes; I want to select some items from this into a new List where one of the properties is equal to any value in another List.</p>
  
  <p>Here's a (simplified) quick example of what I'm trying to do:</p>
  
  <pre><code>public class Job
      {
          public int Number;
          public string ClientCompanyName;            
      }
  
  List&lt;Job&gt; lstJobs = new List&lt;Job&gt;();
  List&lt;Job&gt; lstCompare = new List&lt;Job&gt;();
  </code></pre>
  
  <p>normally I would do something like:</p>
  
  <pre><code>List&lt;Job&gt; lstFiltered = new List&lt;Job&gt;();
  foreach(Job jobThis in lstCompare)
  {
      foreach(jobComp in lstCompare)
      {
          if(jobThis.Number = jobComp.Number)
          {
              lstFiltered.Add(jobThis);
          }
      }
  }
  </code></pre>
  
  <p>Is there an extension method that neatens this last bit up into (ideally) a single line?</p>
  
  <p>Cheers</p>