title: Remove duplicates of a List, selecting by a property value in C#?
body: <p>I have a list of objects that I need some duplicates removed from. We consider them duplicates if they have the same Id and prefer the one whose booleanValue is false. Here's what I have so far:</p>
  
  <pre><code>objects.GroupBy(x =&gt; x.Id).Select(x =&gt; x.Where(y =&gt; !y.booleanValue));
  </code></pre>
  
  <p>I've determined that GroupBy is doing no such grouping, so I don't see if any of the other functions are working. Any ideas on this? Thanks in advance.</p>