title: Why can't I use a ternary operator with this expression?
body: <pre><code>var dict = new Dictionary&lt;string, object&gt;();
  DateTime? myDate;
  
  /*Next line gives: Type of conditional expression cannot be 
  determined because there is no implicit conversion between 'System.DateTime?' 
  and 'System.DBNull' */
  
  dict.Add("breakit", myDate.HasValue ? myDate.Value : DBNull.Value);
  </code></pre>
  
  <p>I don't understand why there needs to be an implicit conversion if one or the other is going into a dictionary expecting type Object.</p>