Open
Description
Summary
Returns a specified number of contiguous elements from the end of a sequence.
Type parameters
TSource
: The type of the elements ofsource
.
Parameters
source
: The sequence to return elements from.count
: The number of elements to return.
Returns
An IEnumerable<T>
that contains the specified number of elements from the end of the input sequence.
Exceptions
ArgumentNullException
:source
isnull
.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: d34dd722-8da5-115a-453a-2aca08dfc1ac
- Version Independent ID: 6ce488c3-e700-8c17-9e78-c35938a093ed
- Content: Enumerable.TakeLast(IEnumerable<TSource>, Int32) Method (System.Linq)
- Content Source: xml/System.Linq/Enumerable.xml
- Product: dotnet-api
- GitHub Login: @dotnet-bot
- Microsoft Alias: dotnetcontent