title: Creating lists from another list's item in Linq
body: <p>I have a list of a custom car object <code>List&lt;Car&gt;</code>. The car class has two properties 'BrandName' and 'Models' as defined below. </p>
  
  <pre><code>public class Car
  {
       public string BrandName {get; set;}
       public List&lt;string&gt; Models {get; set;}
  }
  </code></pre>
  
  <p>The data for the 'List` object is populated from an API as below. It returns close to 200 rows. For illustration purposes, the object has been instantiated with two items as below. The object is returned from the API with this structure and I have no control over how the data is structured and sent. </p>
  
  <pre><code>List&lt;Car&gt; listCarObj = new List&lt;Car&gt;(){
      new Car(){ BrandName = "Mercedes", Models = new List&lt;string&gt;(){"Class A", "Class E"}},
      new Car(){ BrandName = "BMW", Models = new List&lt;string&gt;(){"X Series", "E Series"}}
  } 
  </code></pre>
  
  <p>How do I convert this list to an IEnumerable or another List of an anonymous type having data in the below format using Linq?</p>
  
  <pre><code>var obj = new[] {new {brand = "Mercedes", model = "Class A"},
                   new {brand = "Mercedes", model = "Class E"},
                   new {brand = "BMW", model = "X Series"},
                   new {brand = "BMW", model = "E Series"}};
  </code></pre>
  
  <p>Thanks in advance..</p>