IndexOf<>(source, predicate, startIndex) IndexOf<>(source, element, comparer) JoinString<>(values, separator, prefix, suffix, lastSeparator) Order<>(source, comparer) SkipLast<>(source, count, throwIfNotEnough) Split<>(splitWhat, splitWhere) Split<>(source, chunkSize) ToDictionary2<>(source, key1Selector, key2Selector, comparer1, comparer2) ToDictionary2<>(source, key1Selector, key2Selector, elementSelector, comparer1, comparer2)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: IEnumerable<T> SkipLast<T>(this IEnumerable<T>, int, bool)Declarationpublic static IEnumerable<T> SkipLast<T>(
this IEnumerable<T> source,
int count,
bool throwIfNotEnough = false
) Summary
Enumerates the items of this collection, skipping the last count items. Note that the
memory usage of this method is proportional to count, but the source collection is only
enumerated once, and in a lazy fashion. Also, enumerating the first item will take longer than enumerating
subsequent items. Generic type parametersT | This type parameter is not documented. |
Parametersthis IEnumerable<T> | source |
Source collection. | int | count |
Number of items to skip from the end of the collection. | bool | throwIfNotEnough |
If true , the enumerator throws at the end of the enumeration if the source collection contained fewer
than count elements. |
|