Create(TSource) Method (IList(TSource), Boolean)
From Task Parallel System.Threading
|
|
| .NET Framework Class Library |
| Partitioner..::.Create<(Of <(TSource>)>) Method (IList<(Of <(TSource>)>), Boolean) |
| Partitioner Class See Also Send Feedback |
Creates an orderable partitioner from an IList<(Of <(T>)>)
instance.
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function Create(Of TSource) ( _ list As IList(Of TSource), _ loadBalance As Boolean _ ) As OrderablePartitioner(Of TSource) |
| C# |
|---|
public static OrderablePartitioner<TSource> Create<TSource>( IList<TSource> list, bool loadBalance ) |
Parameters
- list
- Type: System.Collections.Generic..::.IList<(Of <(TSource>)>)
The list to be partitioned.
- loadBalance
- Type: System..::.Boolean
A Boolean value that indicates whether the created partitioner should dynamically load balance between partitions rather than statically partition.
Type Parameters
- TSource
- Type of the elements in source list.