Click or drag to resize

MoreEnumerablePartitionT, TResult Method (IEnumerableIGroupingNullableBoolean, T, FuncIEnumerableT, IEnumerableT, IEnumerableT, TResult)

Partitions a grouping by nullable Boolean keys into a projection of true elements, false elements and null elements, respectively.

Namespace:  MoreLinq
Assembly:  MoreLinq (in MoreLinq.dll) Version: 2.4.0
public static TResult Partition<T, TResult>(
	this IEnumerable<IGrouping<Nullable<bool>, T>> source,
	Func<IEnumerable<T>, IEnumerable<T>, IEnumerable<T>, TResult> resultSelector


Type: System.Collections.GenericIEnumerableIGroupingNullableBoolean, T
The source sequence.
Type: SystemFuncIEnumerableT, IEnumerableT, IEnumerableT, TResult
Function that projects the result from sequences of true elements, false elements and null elements, respectively, passed as arguments.

Type Parameters

Type of elements in source groupings.
Type of the result.

Return Value

Type: TResult
The return value from resultSelector.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableIGroupingNullableBoolean, T. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also