title: Use Null Conditional Operator on property of Null Object
body: <p>I would like to use the Null-Conditional Operator to check the <code>SubscriptionExpires</code> property below.</p>
  
  <pre><code>    public partial class Subscription
  {
      [Key]
      public int SubscriptionId { get; set; }
      public string SubscriberId { get; set; }
      public DateTime? SubscriptionExpires { get; set; }
  
      public virtual ICollection&lt;ApplicationUser&gt; Users { get; set; }
  }
  </code></pre>
  
  <p>A subscription is returned by</p>
  
  <pre><code>var subscription = _customersContext.Subscriptions.Where(s =&gt; s.SubscriptionId == user.SubscriptionId).FirstOrDefault();
  </code></pre>
  
  <p>However if <code>Subscription</code> is null, <code>Subscription?.SubscriptionExpires</code> returns a <code>null reference exception</code>, so we are still left with the old</p>
  
  <pre><code>if (subscription != null)
  </code></pre>
  
  <p>How do I use the Null-Conditional Operator to read a property when the parent object can be null?</p>