Open
Description
Summary
Omits a specified number of elements from the end of a sequence and returns the remaining elements.
Type parameters
TSource
: The type of the elements ofsource
.
Parameters
source
: AnIEnumerable<T>
to return elements from.count
: The number of elements to omit from the end of the sequence.
Returns
An IEnumerable<T>
that contains the elements from the input sequence except the omitted elements.
Exceptions
ArgumentNullException
:source
isnull
.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: d21e35d4-1c71-b417-0a63-56158546fcf3
- Version Independent ID: 30f860fa-5e03-b70d-91f9-782c3eb579f4
- Content: Enumerable.SkipLast(IEnumerable<TSource>, Int32) Method (System.Linq)
- Content Source: xml/System.Linq/Enumerable.xml
- Product: dotnet-api
- GitHub Login: @dotnet-bot
- Microsoft Alias: dotnetcontent
Metadata
Metadata
Assignees
Labels
Identifies work items for the .NET Core 2.x releasesIdentifies work items for the .NET Core 2.x releasesIndicates issues/PRs that are high priorityIndicates issues/PRs that are high priorityGood for community contributors to help [up-for-grabs]Good for community contributors to help [up-for-grabs]Indicates PRs that contain new articlesIndicates PRs that contain new articles