PartitionExtension Class

Partition extension.

Definition

Namespace: MoreLinq.Extensions
Assembly: MoreLinq (in MoreLinq.dll) Version: 3.4.0+b99a6a8cc504caf2d48372fe54a2f8116c59cd0c
C#
public static class PartitionExtension
Inheritance
Object    PartitionExtension

Methods

Partition<T>(IEnumerable<T>, Func<T, Boolean>) Partitions or splits a sequence in two using a predicate.
Partition<T, TResult>(IEnumerable<IGrouping<Boolean, T>>, Func<IEnumerable<T>, IEnumerable<T>, TResult>) Partitions a grouping by Boolean keys into a projection of true elements and false elements, respectively.
Partition<T, TResult>(IEnumerable<IGrouping<Nullable<Boolean>, T>>, Func<IEnumerable<T>, IEnumerable<T>, IEnumerable<T>, TResult>) Partitions a grouping by nullable Boolean keys into a projection of true elements, false elements and null elements, respectively.
Partition<T, TResult>(IEnumerable<T>, Func<T, Boolean>, Func<IEnumerable<T>, IEnumerable<T>, TResult>) Partitions or splits a sequence in two using a predicate and then projects a result from the two.
Partition<TKey, TElement, TResult>(IEnumerable<IGrouping<TKey, TElement>>, TKey, Func<IEnumerable<TElement>, IEnumerable<IGrouping<TKey, TElement>>, TResult>) Partitions a grouping and projects a result from group elements matching a key and those groups that do not.
Partition<TKey, TElement, TResult>(IEnumerable<IGrouping<TKey, TElement>>, TKey, TKey, Func<IEnumerable<TElement>, IEnumerable<TElement>, IEnumerable<IGrouping<TKey, TElement>>, TResult>) Partitions a grouping and projects a result from elements of groups matching a set of two keys and those groups that do not.
Partition<TKey, TElement, TResult>(IEnumerable<IGrouping<TKey, TElement>>, TKey, IEqualityComparer<TKey>, Func<IEnumerable<TElement>, IEnumerable<IGrouping<TKey, TElement>>, TResult>) Partitions a grouping and projects a result from group elements matching a key and those groups that do not. An additional parameter specifies how to compare keys for equality.
Partition<TKey, TElement, TResult>(IEnumerable<IGrouping<TKey, TElement>>, TKey, TKey, TKey, Func<IEnumerable<TElement>, IEnumerable<TElement>, IEnumerable<TElement>, IEnumerable<IGrouping<TKey, TElement>>, TResult>) Partitions a grouping and projects a result from elements groups matching a set of three keys and those groups that do not.
Partition<TKey, TElement, TResult>(IEnumerable<IGrouping<TKey, TElement>>, TKey, TKey, IEqualityComparer<TKey>, Func<IEnumerable<TElement>, IEnumerable<TElement>, IEnumerable<IGrouping<TKey, TElement>>, TResult>) Partitions a grouping and projects a result from elements of groups matching a set of two keys and those groups that do not. An additional parameter specifies how to compare keys for equality.
Partition<TKey, TElement, TResult>(IEnumerable<IGrouping<TKey, TElement>>, TKey, TKey, TKey, IEqualityComparer<TKey>, Func<IEnumerable<TElement>, IEnumerable<TElement>, IEnumerable<TElement>, IEnumerable<IGrouping<TKey, TElement>>, TResult>) Partitions a grouping and projects a result from elements groups matching a set of three keys and those groups that do not. An additional parameter specifies how to compare keys for equality.

See Also