title: Whats wrong with setting nullable double to null?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/2766932/why-cant-i-set-a-nullable-int-to-null-in-a-ternary-if-statement">Why can&#39;t I set a nullable int to null in a ternary if statement?</a><br>
    <a href="https://stackoverflow.com/questions/858080/nullable-types-and-the-ternary-operator-why-wont-this-work">Nullable types and the ternary operator. Why won&#39;t this work?</a>  </p>
  </blockquote>
  
  
  
  <p>Whats wrong with the below</p>
  
  <pre><code>public double? Progress { get; set; }
  Progress = null; // works
  Progress = 1; // works
  Progress = (1 == 2) ? 0.0 : null; // fails
  </code></pre>
  
  <blockquote>
    <p>Type of conditional expression cannot be determined because there is no implicit conversion between 'double' and '&lt;null>'</p>
  </blockquote>