Partitioner.Create(Of TSource) Method (IEnumerable(Of TSource))

.NET Framework 4.6 and 4.5

Creates an orderable partitioner from a IEnumerable(Of T) instance.

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

'Declaration
Public Shared Function Create(Of TSource) ( _
	source As IEnumerable(Of TSource) _
) As OrderablePartitioner(Of TSource)

Type Parameters

TSource

Type of the elements in source enumerable.

Parameters

source
Type: System.Collections.Generic.IEnumerable(Of TSource)

The enumerable to be partitioned.

Return Value

Type: System.Collections.Concurrent.OrderablePartitioner(Of TSource)
An orderable partitioner based on the input array.

The ordering used in the created partitioner is determined by the natural order of the elements as retrieved from the source enumerable. 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

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft