title: How to get last row + column from a collection in C# using lambda
body: <p>I have an <code>IEnumerable</code> object which has 3 fields.</p>
  
  <p>Fields <code>A</code>, <code>B</code> and <code>ResultNumber</code>.</p>
  
  <p>How do I get only the <code>Resultnumber</code> from the last row using lambda expression?</p>
  
  <p>I tried the following which didn't work:</p>
  
  <pre><code>resultnum = result.LastOrDefault(d =&gt; d.ResultNumber)
  </code></pre>
  
  <p>In this case I already have results which are stored in the resultnum variable. </p>