title: c# What does this line mean?
body: <p>Could anybody explain the following code <code>return total ?? decimal.Zero</code> please?</p>
  
  <pre><code>public decimal GetTotal()
  {
      // Part Price * Count of parts sum all totals to get basket total
      decimal? total = (from basketItems in db.Baskets
                        where basketItems.BasketId == ShoppingBasketId
                        select (int?)basketItems.Qty * basketItems.Part.Price).Sum();
      return total ?? decimal.Zero;
  }
  </code></pre>
  
  <p>Does it mean the following?</p>
  
  <pre><code>    if (total !=null) return total;
      else return 0;
  </code></pre>