title: Linq query to return a flatened list of parent child
body: <p>still new to the world of linq, and i need some help flatening a list of parents that have children, into a single list of ParentChild's.</p>
  
  <p>Just like this:</p>
  
  <pre><code>class Program
  {
      static void Main()
      {
          List&lt;Parent&gt; parents = new List&lt;Parent&gt;();
  
          parents.Add(new Parent { Name = "Parent1", Children = new List&lt;Child&gt; { new Child { Name = "Child1" }, new Child { Name = "Child2" } } });
          parents.Add(new Parent { Name = "Parent2", Children = new List&lt;Child&gt; { new Child { Name = "Child3" }, new Child { Name = "Child4" } } });
  
          // linq query to return List&lt;ParentChild&gt; parentChildList;
          // ParentName = Parent1, ChildName = Child1
          // ParentName = Parent1, ChildName = Child2
          // ParentName = Parent2, ChildName = Child3
          // ParentName = Parent2, ChildName = Child4
      }
  
      internal class ParentChild
      {
          public string ParentName { get; set; }
          public string ChildName { get; set; }
      }
  
      internal class Parent
      {
          public string Name { get; set; }
          public List&lt;Child&gt; Children { get; set; }
      }
  
      internal class Child
      {
          public string Name { get; set; }
      }
  }
  </code></pre>
  
  <p>Many thanks,
  Chris</p>