title: How to find last occurrence of an element using FindLast()
body: <p>I want to find the last occurrence of an element in a list and know I must use the FindLast() to do that. However, I don't know how to implement and use this method. </p>
  
  <p>Here is the code that I have: </p>
  
  <pre><code>// the list I need to check
  orderedMetricsByNS = (List&lt;Metric&gt;) lmresponse.Metrics.OrderBy(metric =&gt; metric.Namespace);
  
  foreach (Metric m in orderedMetricsByNS)
              {
                   // want to use the FindLast() here 
              }
  </code></pre>
  
  <p>How do I retrieve the last occurrence of a metric like this? Thanks</p>