예제 #1
0
 /// <summary>
 /// Gets the most recent <paramref name="count" /> of entries, sorted newest first.
 /// </summary>
 /// <param name="count">The number of entries to retrieve.</param>
 /// <returns>A list of log entries of the specified <paramref name="count" />, newest first.</returns>
 public List <string> this[int count]
 {
     get
     {
         return(LogEntries.AsEnumerable().Reverse().Take(count).ToList());
     }
 }
예제 #2
0
 /// <summary>
 /// Gets the most recent <paramref name="count" /> of entries, sorted newest first.
 /// </summary>
 /// <param name="count">The number of entries to retrieve.</param>
 /// <returns>A list of log entries of the specified <paramref name="count" />, newest first.</returns>
 public List <string> this[int count] => LogEntries.AsEnumerable().Reverse().Take(count).ToList();