title: Last and LastOrDefault not supported
body: <p>I am trying to get the first and last values in a list. The query operator <code>First()</code> is supported but <code>Last()</code> and <code>LastOrDefault()</code> give an error. Am I using the <code>Last()</code> operator incorrectly?</p>
  <pre><code>var purchaseBills = db.PurchaseBills.OrderBy(p =&gt; p.BillID);
  
  if (purchaseBills.Count() &gt;0)
  {
      var firstBill = purchaseBills.First(); // This is supported
  
      // Attempt 1                    
      var lastBill = purchaseBills.Last(); // Not supported
      
      // Attempt 2
      var lastBill = purchaseBills.LastOrDefault(); // Not supported
  
      //Attempt 3
      var lastBill = purchaseBills.Reverse().First(); // Not supported
      
      textBoxPurchaseBillFrom.Text = firstBill.BillNo.ToString();
      textBoxPurchaseBillTo.Text = lastBill.BillNo.ToString();
  }
  </code></pre>
  <p><strong>Update:</strong></p>
  <blockquote>
  <p>--Errors--</p>
  <p>Attempt 1:  The query operator '<code>Last</code>' is not supported.</p>
  <p>Attempt 2:  The query operator '<code>LastOrDefault</code>' is not supported.</p>
  <p>Attempt 3:  The query operator '<code>Reverse</code>' is not supported.</p>
  </blockquote>