C# Func and Conditional Operator
<p><a href="http://stackoverflow.com/questions/263151/lambdas-and-the-ternary-operator-weird-issue">Duplicate</a></p>

<p>I can do this:</p>

<pre><code>Func&lt;CategorySummary, decimal&gt; orderByFunc;
if (orderBy == OrderProductsByProperty.Speed)
     orderByFunc = x =&gt; x.Speed;
else
    orderByFunc = x =&gt; x.Price;
</code></pre>

<p>Why can't I do this:</p>

<pre><code>Func&lt;CategorySummary, decimal&gt; orderByFunc = (orderBy == OrderProductsByProperty.Speed) ? x =&gt; x.Speed : x =&gt; x.Price;
</code></pre>
