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>> Subsequences<T>(this IEnumerable<T>, int, int?)Declarationpublic static IEnumerable<IEnumerable<T>> Subsequences<T>(
this IEnumerable<T> source,
int minLength = 0,
int? maxLength = null
) Summary
Returns all subsequences of the specified lengths of the input IEnumerable<T>. Generic type parametersT | This type parameter is not documented. |
Parametersthis IEnumerable<T> | source |
The sequence of items to generate subsequences of. | int | minLength |
The minimum length of a subsequence to return. Must be between 0 and the length of the input collection. | int? | maxLength |
The maximum length of a subsequence to return. Must be between 0 and the length of the input collection. If
null is specified, the size of the input collection is used. |
Returns
A collection containing all matching subsequences of the input IEnumerable<T>. |