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 of source.
Parameters
source: An IEnumerable<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 is null.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
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:sourceisnull.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.