title: Attribute that returns a single object from a List inside the same class
body: <p>I have a List&lt;> that holds the status history for the record. I'd like to include an attribute that will return the most recent status from that list.</p>
  
  <p>The problem is extensions such as .OrderByDescending are not available when accessing the List from within the class.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>public class Course
  {
      public int CourseID { get; set; }
      public string Title { get; set; }
      public virtual List&lt;CourseStatus&gt; CourseStatusList { get; set; }
  
      public CourseStatus Current
      {
          get 
          {
                //Return a single CourseStatus object from 
                //CourseStatusList with max(InsertDate)
          }
      }
  }
  
  public class CourseStatus
  {
      public int StatusID { get; set; }
      public DateTime InsertDate { get; set; }
      public string Description { get; set; }
      public virtual Course Course { get; set; }
  }
  </code></pre>
  
  <p>I normally do this in my DAL, but wondered if it was possible to have the class do the work.</p>