title: Distinct by property of class with LINQ
body: <p>I have a collection:</p>
  
  <pre><code>List&lt;Car&gt; cars = new List&lt;Car&gt;();
  </code></pre>
  
  <p>Cars are uniquely identified by their property <code>CarCode</code>.</p>
  
  <p>I have three cars in the collection, and two with identical CarCodes.</p>
  
  <p>How can I use LINQ to convert this collection to Cars with unique CarCodes?</p>