title: How to get a distinct list from a List of objects?
body: <p>I have a <code>List&lt;MyClass&gt; someList</code>.</p>
  
  <pre><code>class MyClass
  {
      public int Prop1...
      public int Prop2...
      public int Prop3...
  }
  </code></pre>
  
  <p>I would like to know how to get a new distinct <code>List&lt;MyClass&gt; distinctList</code> from <code>List&lt;MyClass&gt; someList</code>, but only comparing it to <code>Prop2</code>.</p>