title: Comparer create lambda function cannot implicitly convert type CS0029
body: <p>I'm trying to add a comparer for a data structure like so:</p>
  
  <pre><code>    private SortedSet&lt;int&gt; sortedScore = new SortedSet&lt;int&gt;(Comparer&lt;int&gt;.Create(
          (a, b) =&gt; a &gt; b));
  </code></pre>
  
  <p>But I'm getting: CS0029 Cannot implicitly convert type 'bool' to 'int'</p>
  
  <p>Which is strange because <code>a &gt; b</code> is a boolean, not an int, even a cast doesn't help, but if I do: </p>
  
  <pre><code>    private SortedSet&lt;int&gt; sortedScore = new SortedSet&lt;int&gt;(Comparer&lt;int&gt;.Create(
          (a, b) =&gt; a.CompareTo(b)));
  </code></pre>
  
  <p>I get no errors and actually, anything other than that get me the same error as above. So How can I change the comparer to be anything other than the default? </p>