title: Linq to Select Parent Objects Where Child Objects Have a Matching Child Object
body: <p>How would I go about writing a LINQ statement that selects the parent objects that have a matching child object in it's collection? Here's example classes.</p>
  
  <pre><code>class Parent {
      int ID { get; set; }
      string Name { get; set; }
      List&lt;Child&gt; Children { get; set; }
  }
  
  class Child {
      int ID { get; set; }
      string Name { get; set; }
      string Nickname { get; set; }
  }
  </code></pre>
  
  <p>In the example above, I would like to return all of the parents that contain a child with a specific nickname.</p>