title: Why can't I assign null to decimal with ternary operator?
body: <p>I can't understand why this won't work</p>
  
  <pre><code>decimal? compRetAmount = !string.IsNullOrEmpty(txtLineCompRetAmt.Text) 
      ? decimal.Parse(txtLineCompRetAmt.Text.Replace(",","")) 
      : null;
  </code></pre>