title: Using LINQ, select list of objects inside another list of objects
body: <pre><code>public class ClassA
  {
       public string MyString {get; set;}
  }
  
  public class ClassB
  {
       public List&lt;ClassA&gt; MyObjects {get; set;}
  }
  
  List&lt;ClassB&gt; classBList = new List&lt;ClassB&gt;();
  var results = (from i in classBList select i.MyObjects).Distinct();
  </code></pre>
  
  <p>I want a distinct list of all the <code>ClassA</code> objects in the <code>classBList</code>.  How do I go about this using <strong>LINQ</strong>? I'm thinking about a nested query, but couldn't quite figure it out.  Any help is very appreciated.</p>