title: There is no implicit conversion between null and datetime
body: <p>Following code read a piece data from given <code>DataRow</code>(modelValue) and parse it to a <code>nullable</code> <code>DateTime</code> instance.</p>
  
  <p><strong>Question</strong>: Please see the code sections under <code>L1 &amp; L2</code> where both are technically equal (If i am not making any schoolboy error). However, <code>L1</code> works as expected but not <code>L2</code>. I am getting </p>
  
  <blockquote>
    <p>there is no implicit conversion between null and datetime</p>
  </blockquote>
  
  <p>when I execute the code under <code>L2</code>. Can someone advise me ?</p>
  
  <pre><code>        DateTime? CallBack;
  
          var callBackDate = modelValue["CallBack"] == DBNull.Value ? null : modelValue["CallBack"].ToString();
          //Parsing
          DateTime cdate;
          if (!DateTime.TryParse(callBackDate, out cdate))
              cdate = DateTime.MinValue;
  
  
          //L1
          if (cdate==DateTime.MinValue)
              CallBack = null;
          else
             CallBack = cdate.Date;
  
         //L2  
         CallBack = cdate == DateTime.MinValue?null:cdate.Date;
  </code></pre>