title: What is the best way to filter the contents of an arraylist?
body: <p>Say I have an ArrayList of USBDevice Objects. Each USBDevice has ProductID and VendorID properties (among others). I want to create another ArrayList that is a subset of the first that contains only USBDevice that match a specific VID. What is the shortest way of doing this? I haven't tried this yet but can lambda expressions be used like this...</p>
  
  <pre><code>ArrayList CompleteList = new ArrayList();
  ...
  // Fill CompleteList with all attached devices....
  ...
  ArrayList SubSetList = CompleteList.Where(d =&gt; d.VID == "10C4")
  </code></pre>