title: Best way of checking Null in C# 4.0
body: <p>I was checking null like below for <code>modifiedDate</code>, it was working fine in <strong>4.5</strong> but as soon as my code deployed in <strong>C# 4.0</strong> it is not working. What is the best way of handling below condition in <strong>4.0</strong> ?</p>
  
  <pre><code>modifiedDate = b?.last_modified?[0] ?? DateTime.Now,
  
  var searchedDataList = objJson.response.docs.Select(b =&gt;
                  new finalOutput
                  {
                      modifiedDate = b?.last_modified?[0] ?? DateTime.Now,               
                      Size = b.stream_size[0]
                  }).ToList&lt;finalOutput&gt;();
  
   public Nullable&lt;DateTime&gt; modifiedDate { get; set; }
  </code></pre>
  
  <p>I tried modifying like this but it does not work - </p>
  
  <pre><code> modifiedDate = b.last_modified[0] ?? DateTime.Now
  </code></pre>