title: Linq - select distinct values
body: <p>I have the following object in a collection (List)</p>
  
  <pre><code>public class MyObject{
  
      string vendor;
      string unit;
  
      int unit123;
      AnotherObject unit456;
  }
  </code></pre>
  
  <p>This can be long and repetitive. </p>
  
  <p>I want to select, using linq,  only the distinct values of vendor and unit and put it in the following structure</p>
  
  <p>Dictionary</p>
  
  <p>Is it possible?</p>