MoreEnumerableSkipLastT Method

Bypasses a specified number of elements at the end of the sequence.

Definition

Namespace: MoreLinq
Assembly: MoreLinq (in MoreLinq.dll) Version: 4.0.0+092a40d82a1b280568ffa006d9a210bdec0792cd
C#
public static IEnumerable<T> SkipLast<T>(
	IEnumerable<T> source,
	int count
)

Parameters

source  IEnumerableT
The source sequence.
count  Int32
The number of elements to bypass at the end of the source sequence.

Type Parameters

T
Type of the source sequence

Return Value

IEnumerableT
An IEnumerableT containing the source sequence elements except for the bypassed ones at the end.

See Also