MoreEnumerableSkipLastT Method
Bypasses a specified number of elements at the end of the sequence.
Namespace: MoreLinqAssembly: MoreLinq (in MoreLinq.dll) Version: 4.0.0+092a40d82a1b280568ffa006d9a210bdec0792cd
public static IEnumerable<T> SkipLast<T>(
IEnumerable<T> source,
int count
)
Public Shared Function SkipLast(Of T) (
source As IEnumerable(Of T),
count As Integer
) As IEnumerable(Of T)
public:
generic<typename T>
static IEnumerable<T>^ SkipLast(
IEnumerable<T>^ source,
int count
)
static member SkipLast :
source : IEnumerable<'T> *
count : int -> IEnumerable<'T>
- source IEnumerableT
- The source sequence.
- count Int32
- The number of elements to bypass at the end of the source sequence.
- T
- Type of the source sequence
IEnumerableT
An
IEnumerableT containing the source sequence elements except for the bypassed ones at the end.