title: Mapping a list of object models onto another list using linq
body: <p>I have two object models that share some properties and a list of one type that I want to use to create a list of another type. For now, I have something like this (and it works):</p>
  <pre><code>List&lt;ObjectA&gt; TheListOfObjectsA = the result of some query;
  List&lt;ObjectB&gt; TheListOfObjectsB = new List&lt;ObjectB&gt;();
  
  foreach (ObjectA TheObjectA in TheListObjectsA)
  {
     ObjectB TheObjectB = new ObjectB();
  
     TheObjectB.Prop1 = TheObjectA.Prop1;
     TheObjectB.Prop2 = TheObjectA.Prop2;
  
     TheListOfObjectsB.Add(TheObjectB);
  }
  </code></pre>
  <p>I'm curious if and how I could rewrite this in a linq statement without the loop (even thought we know the linq statement will be executed as a loop).</p>