Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<T> TakeLast<T>(this IEnumerable<T>, int)

Declaration

public static IEnumerable<T> TakeLast<T>(
    this IEnumerable<T> source,
    int count
)

Summary

Returns a collection containing only the last count items of the input collection. This method enumerates the entire collection to the end once before returning. Note also that the memory usage of this method is proportional to count.

Generic type parameters

TThis type parameter is not documented.