Partitioner.Create<TSource> Method (IList<TSource>, Boolean)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates an orderable partitioner from an IList<T> instance.

Namespace:   System.Collections.Concurrent
Assembly:  mscorlib (in mscorlib.dll)

public static OrderablePartitioner<TSource> Create<TSource>(
	IList<TSource> list,
	bool loadBalance


Type: System.Collections.Generic.IList<TSource>

The list to be partitioned.

Type: System.Boolean

A Boolean value that indicates whether the created partitioner should dynamically load balance between partitions rather than statically partition.

Return Value

Type: System.Collections.Concurrent.OrderablePartitioner<TSource>

An orderable partitioner based on the input list.

Type Parameters


Type of the elements in source list.

For more information and examples, see Custom Partitioners for PLINQ and TPL.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top