C# Nullable Type question
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/858080/nullable-types-and-the-ternary-operator-why-wont-this-work">Nullable types and the ternary operator. Why won&rsquo;t this work?</a>  </p>
</blockquote>



<p>for example:</p>

<pre><code>int? taxid;
if (ddlProductTax.SelectedValue == "") {
  taxid = null; } 
else {
  taxid = Convert.ToInt32(ddlProductTax.SelectedValue);
} //Correct
</code></pre>

<p>But</p>

<pre><code>int? taxid;
taxid = (ddlProductTax.SelectedValue == "" ? null : Convert.ToInt32(ddlProductTax.SelectedValue)); //Error
</code></pre>

<p>It error say  and int32 cannot implicit convert.</p>

<p>The (  ? truepart : falsepart); is not short of (if ..else..) ?</p>
