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

.NET Framework 4.6 and 4.5

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

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

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

Type Parameters


Type of the elements in source list.


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.

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Portable Class Library

Supported in: Portable Class Library
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft