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<IEnumerable<T>> Split<T>(this IEnumerable<T>, Func<T, bool>)Declarationpublic static IEnumerable<IEnumerable<T>> Split<T>(
this IEnumerable<T> splitWhat,
Func<T, bool> splitWhere
) Summary
Splits the specified IEnumerable at every element that satisfies a specified predicate and returns a
collection containing each sequence of elements in between each pair of such elements. The elements satisfying
the predicate are not included. Generic type parametersT | This type parameter is not documented. |
Parametersthis IEnumerable<T> | splitWhat |
The collection to be split. | Func<T, bool> | splitWhere |
A predicate that determines which elements constitute the separators. |
Returns
A collection containing the individual pieces taken from the original collection. |