Class ParallelTasks
Provides ways to encapsulate and re-use existing code while adding support for parallel loops and regions.
Inheritance
Namespace: Cuemon.Threading
Assembly: Cuemon.Threading.dll
Syntax
public static class ParallelTasks
Methods
| Improve this DocFor<TSource>(TSource, TSource, Action<TSource>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource>(TSource initial, TSource repeats, Action<TSource> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
Remarks
The following table shows the initial overloaded arguments for For<TSource>(TSource, TSource, Action<TSource>).
Argument | Initial Value |
---|---|
partitionSize | Cuemon.Threading.ParallelTasks.DefaultNumberOfConcurrentWorkerThreads |
timeout | System.TimeSpan.FromMinutes(Double) set to 2 |
relational | LessThan |
assignment | Addition |
step | 1 |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource>(Int32, TSource, TSource, Action<TSource>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource>(int partitionSize, TSource initial, TSource repeats, Action<TSource> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource>(Int32, TimeSpan, TSource, TSource, Action<TSource>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Action<TSource> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Action<TSource>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Action<TSource> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Action<TSource> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Action<TSource>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Action<TSource> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Action<TSource> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Action<TSource>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Action<TSource> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Int32, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(int partitionSize, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Int32, TimeSpan, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Int32, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(int partitionSize, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Int32, TimeSpan, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T>(TSource, TSource, Action<TSource, T>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T>(TSource initial, TSource repeats, Action<TSource, T> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T>(Int32, TSource, TSource, Action<TSource, T>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T>(int partitionSize, TSource initial, TSource repeats, Action<TSource, T> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T>(Int32, TimeSpan, TSource, TSource, Action<TSource, T>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Action<TSource, T> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Action<TSource, T>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Action<TSource, T> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Action<TSource, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Action<TSource, T>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Action<TSource, T> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Action<TSource, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Action<TSource, T>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Action<TSource, T> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2>(TSource, TSource, Action<TSource, T1, T2>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2>(TSource initial, TSource repeats, Action<TSource, T1, T2> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2>(Int32, TSource, TSource, Action<TSource, T1, T2>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2>(int partitionSize, TSource initial, TSource repeats, Action<TSource, T1, T2> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2>(Int32, TimeSpan, TSource, TSource, Action<TSource, T1, T2>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Action<TSource, T1, T2> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Action<TSource, T1, T2>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Action<TSource, T1, T2> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Action<TSource, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Action<TSource, T1, T2>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Action<TSource, T1, T2> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Action<TSource, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Action<TSource, T1, T2>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Action<TSource, T1, T2> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3>(TSource, TSource, Action<TSource, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3>(TSource initial, TSource repeats, Action<TSource, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3>(Int32, TSource, TSource, Action<TSource, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3>(int partitionSize, TSource initial, TSource repeats, Action<TSource, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3>(Int32, TimeSpan, TSource, TSource, Action<TSource, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Action<TSource, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Action<TSource, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Action<TSource, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Action<TSource, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Action<TSource, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Action<TSource, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Action<TSource, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Action<TSource, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Action<TSource, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4>(TSource, TSource, Action<TSource, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4>(TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4>(Int32, TSource, TSource, Action<TSource, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4>(int partitionSize, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4>(Int32, TimeSpan, TSource, TSource, Action<TSource, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Action<TSource, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Action<TSource, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Action<TSource, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Action<TSource, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Action<TSource, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Action<TSource, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Action<TSource, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Action<TSource, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5>(TSource, TSource, Action<TSource, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5>(TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5>(Int32, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5>(int partitionSize, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5>(Int32, TimeSpan, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Action<TSource, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Action<TSource, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Action<TSource, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Action<TSource, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Action<TSource, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Action<TSource, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Action<TSource, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Action<TSource, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6>(TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6>(TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6>(Int32, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6>(int partitionSize, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6>(Int32, TimeSpan, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Action<TSource, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Action<TSource, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Action<TSource, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Action<TSource, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Action<TSource, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Action<TSource, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Action<TSource, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7>(TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7>(TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7>(Int32, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7>(int partitionSize, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7>(Int32, TimeSpan, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Action<TSource, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Action<TSource, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Action<TSource, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(Int32, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(int partitionSize, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(Int32, TimeSpan, TSource, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void For<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForEach<TSource>(IEnumerable<TSource>, Action<TSource>)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource>(IEnumerable<TSource> source, Action<TSource> body)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
Remarks
The following table shows the initial overloaded arguments for ForEach<TSource>(IEnumerable<TSource>, Action<TSource>).
Argument | Initial Value |
---|---|
partitionSize | Cuemon.Threading.ParallelTasks.DefaultNumberOfConcurrentWorkerThreads |
timeout | System.TimeSpan.FromMinutes(Double) set to 2 |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource>(Int32, IEnumerable<TSource>, Action<TSource>)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource>(int partitionSize, IEnumerable<TSource> source, Action<TSource> body)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource>(Int32, TimeSpan, IEnumerable<TSource>, Action<TSource>)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Action<TSource> body)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Int32, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(int partitionSize, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Int32, TimeSpan, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Int32, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(int partitionSize, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Int32, TimeSpan, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T>(IEnumerable<TSource>, Action<TSource, T>, T)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T>(IEnumerable<TSource> source, Action<TSource, T> body, T arg)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T>(Int32, IEnumerable<TSource>, Action<TSource, T>, T)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T>(int partitionSize, IEnumerable<TSource> source, Action<TSource, T> body, T arg)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T>(Int32, TimeSpan, IEnumerable<TSource>, Action<TSource, T>, T)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Action<TSource, T> body, T arg)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2>(IEnumerable<TSource>, Action<TSource, T1, T2>, T1, T2)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2>(IEnumerable<TSource> source, Action<TSource, T1, T2> body, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2>(Int32, IEnumerable<TSource>, Action<TSource, T1, T2>, T1, T2)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2>(int partitionSize, IEnumerable<TSource> source, Action<TSource, T1, T2> body, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2>(Int32, TimeSpan, IEnumerable<TSource>, Action<TSource, T1, T2>, T1, T2)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Action<TSource, T1, T2> body, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3>(IEnumerable<TSource>, Action<TSource, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3>(IEnumerable<TSource> source, Action<TSource, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3>(Int32, IEnumerable<TSource>, Action<TSource, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3>(int partitionSize, IEnumerable<TSource> source, Action<TSource, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3>(Int32, TimeSpan, IEnumerable<TSource>, Action<TSource, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Action<TSource, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4>(IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4>(IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4>(Int32, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4>(int partitionSize, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4>(Int32, TimeSpan, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5>(IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5>(IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5>(Int32, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5>(int partitionSize, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5>(Int32, TimeSpan, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6>(IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6>(IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6>(Int32, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6>(int partitionSize, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6>(Int32, TimeSpan, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7>(IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7>(IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7>(Int32, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7>(int partitionSize, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7>(Int32, TimeSpan, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(Int32, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(int partitionSize, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(Int32, TimeSpan, IEnumerable<TSource>, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void ForEach<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Action<TSource, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Int32, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(int partitionSize, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Int32, TimeSpan, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Int32, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(int partitionSize, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Int32, TimeSpan, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
T10 | arg10 | The tenth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
T10 | The type of the tenth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Int32, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(int partitionSize, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
T10 | arg10 | The tenth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
T10 | The type of the tenth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Int32, TimeSpan, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
T8 | arg8 | The eighth parameter of the function delegate |
T9 | arg9 | The ninth parameter of the function delegate |
T10 | arg10 | The tenth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
T8 | The type of the eighth parameter of the function delegate |
T9 | The type of the ninth parameter of the function delegate |
T10 | The type of the tenth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, TResult>(IEnumerable<TSource>, Func<TSource, TResult>)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, TResult>(IEnumerable<TSource> source, Func<TSource, TResult> body)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, TResult> | body | The delegate that is invoked once per iteration. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
TResult | The type of the return value of the |
Remarks
The following table shows the initial overloaded arguments for ForEachTask<TSource, TResult>(IEnumerable<TSource>, Func<TSource, TResult>).
Argument | Initial Value |
---|---|
partitionSize | Cuemon.Threading.ParallelTasks.DefaultNumberOfConcurrentWorkerThreads |
timeout | System.TimeSpan.FromMinutes(Double) set to 2 |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, TResult>(Int32, IEnumerable<TSource>, Func<TSource, TResult>)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, TResult>(int partitionSize, IEnumerable<TSource> source, Func<TSource, TResult> body)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, TResult> | body | The delegate that is invoked once per iteration. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, TResult>(Int32, TimeSpan, IEnumerable<TSource>, Func<TSource, TResult>)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, TResult>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Func<TSource, TResult> body)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, TResult> | body | The delegate that is invoked once per iteration. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T, TResult>(IEnumerable<TSource>, Func<TSource, T, TResult>, T)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T, TResult>(IEnumerable<TSource> source, Func<TSource, T, TResult> body, T arg)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T, TResult> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T, TResult>(Int32, IEnumerable<TSource>, Func<TSource, T, TResult>, T)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T, TResult>(int partitionSize, IEnumerable<TSource> source, Func<TSource, T, TResult> body, T arg)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T, TResult> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T, TResult>(Int32, TimeSpan, IEnumerable<TSource>, Func<TSource, T, TResult>, T)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T, TResult>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Func<TSource, T, TResult> body, T arg)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T, TResult> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, TResult>, T1, T2)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, TResult>(IEnumerable<TSource> source, Func<TSource, T1, T2, TResult> body, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, TResult>(Int32, IEnumerable<TSource>, Func<TSource, T1, T2, TResult>, T1, T2)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, TResult>(int partitionSize, IEnumerable<TSource> source, Func<TSource, T1, T2, TResult> body, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, TResult>(Int32, TimeSpan, IEnumerable<TSource>, Func<TSource, T1, T2, TResult>, T1, T2)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, TResult>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Func<TSource, T1, T2, TResult> body, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, TResult>(IEnumerable<TSource> source, Func<TSource, T1, T2, T3, TResult> body, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, TResult>(Int32, IEnumerable<TSource>, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, TResult>(int partitionSize, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, TResult> body, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, TResult>(Int32, TimeSpan, IEnumerable<TSource>, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, TResult>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, TResult> body, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, TResult>(IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, TResult>(Int32, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, TResult>(int partitionSize, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, TResult>(Int32, TimeSpan, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, TResult>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, TResult>(IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, TResult>(Int32, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, TResult>(int partitionSize, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, TResult>(Int32, TimeSpan, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, TResult>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(Int32, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(int partitionSize, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(Int32, TimeSpan, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(Int32, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(int partitionSize, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(Int32, TimeSpan, IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel foreach-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForEachTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(int partitionSize, TimeSpan timeout, IEnumerable<TSource> source, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel foreach-loop operation to complete. |
System.Collections.Generic.IEnumerable<TSource> | source | The sequence to iterate over parallel. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the function delegate |
T2 | arg2 | The second parameter of the function delegate |
T3 | arg3 | The third parameter of the function delegate |
T4 | arg4 | The fourth parameter of the function delegate |
T5 | arg5 | The fifth parameter of the function delegate |
T6 | arg6 | The sixth parameter of the function delegate |
T7 | arg7 | The seventh parameter of the function delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the function delegate |
T2 | The type of the second parameter of the function delegate |
T3 | The type of the third parameter of the function delegate |
T4 | The type of the fourth parameter of the function delegate |
T5 | The type of the fifth parameter of the function delegate |
T6 | The type of the sixth parameter of the function delegate |
T7 | The type of the seventh parameter of the function delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Int32, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(int partitionSize, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Int32, TimeSpan, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Int32, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(int partitionSize, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Int32, TimeSpan, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Int32, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(int partitionSize, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Int32, TimeSpan, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, TResult>(TSource, TSource, Func<TSource, TResult>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, TResult>(TSource initial, TSource repeats, Func<TSource, TResult> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, TResult> | body | The delegate that is invoked once per iteration. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
TResult | The type of the return value of the |
Remarks
The following table shows the initial overloaded arguments for For<TSource>(TSource, TSource, Action<TSource>).
Argument | Initial Value |
---|---|
partitionSize | Cuemon.Threading.ParallelTasks.DefaultNumberOfConcurrentWorkerThreads |
timeout | System.TimeSpan.FromMinutes(Double) set to 2 |
relational | LessThan |
assignment | Addition |
step | 1 |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, TResult>(Int32, TSource, TSource, Func<TSource, TResult>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, TResult>(int partitionSize, TSource initial, TSource repeats, Func<TSource, TResult> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, TResult> | body | The delegate that is invoked once per iteration. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, TResult>(Int32, TimeSpan, TSource, TSource, Func<TSource, TResult>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, TResult>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Func<TSource, TResult> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, TResult> | body | The delegate that is invoked once per iteration. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Func<TSource, TResult>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Func<TSource, TResult> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Func<TSource, TResult> | body | The delegate that is invoked once per iteration. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Func<TSource, TResult>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Func<TSource, TResult> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Func<TSource, TResult> | body | The delegate that is invoked once per iteration. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Func<TSource, TResult>)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Func<TSource, TResult> body)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, TResult> | body | The delegate that is invoked once per iteration. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T, TResult>(TSource, TSource, Func<TSource, T, TResult>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T, TResult>(TSource initial, TSource repeats, Func<TSource, T, TResult> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T, TResult> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T, TResult>(Int32, TSource, TSource, Func<TSource, T, TResult>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T, TResult>(int partitionSize, TSource initial, TSource repeats, Func<TSource, T, TResult> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T, TResult> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T, TResult>(Int32, TimeSpan, TSource, TSource, Func<TSource, T, TResult>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T, TResult>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Func<TSource, T, TResult> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T, TResult> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Func<TSource, T, TResult>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Func<TSource, T, TResult> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Func<TSource, T, TResult> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Func<TSource, T, TResult>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Func<TSource, T, TResult> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Func<TSource, T, TResult> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Func<TSource, T, TResult>, T)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Func<TSource, T, TResult> body, T arg)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T, TResult> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T | The type of the parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, TResult>(TSource, TSource, Func<TSource, T1, T2, TResult>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, TResult>(TSource initial, TSource repeats, Func<TSource, T1, T2, TResult> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, TResult>(Int32, TSource, TSource, Func<TSource, T1, T2, TResult>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, TResult>(int partitionSize, TSource initial, TSource repeats, Func<TSource, T1, T2, TResult> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, TResult>(Int32, TimeSpan, TSource, TSource, Func<TSource, T1, T2, TResult>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, TResult>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Func<TSource, T1, T2, TResult> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Func<TSource, T1, T2, TResult>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Func<TSource, T1, T2, TResult> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Func<TSource, T1, T2, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Func<TSource, T1, T2, TResult>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Func<TSource, T1, T2, TResult> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Func<TSource, T1, T2, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Func<TSource, T1, T2, TResult>, T1, T2)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Func<TSource, T1, T2, TResult> body, T1 arg1, T2 arg2)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, TResult>(TSource, TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, TResult>(TSource initial, TSource repeats, Func<TSource, T1, T2, T3, TResult> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, TResult>(Int32, TSource, TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, TResult>(int partitionSize, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, TResult> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, TResult>(Int32, TimeSpan, TSource, TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, TResult>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, TResult> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Func<TSource, T1, T2, T3, TResult> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Func<TSource, T1, T2, T3, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Func<TSource, T1, T2, T3, TResult> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Func<TSource, T1, T2, T3, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Func<TSource, T1, T2, T3, TResult> body, T1 arg1, T2 arg2, T3 arg3)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, TResult>(TSource, TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, TResult>(TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, TResult>(Int32, TSource, TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, TResult>(int partitionSize, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, TResult>(Int32, TimeSpan, TSource, TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, TResult>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Func<TSource, T1, T2, T3, T4, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Func<TSource, T1, T2, T3, T4, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Func<TSource, T1, T2, T3, T4, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Func<TSource, T1, T2, T3, T4, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Func<TSource, T1, T2, T3, T4, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, TResult>(TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, TResult>(TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, TResult>(Int32, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, TResult>(int partitionSize, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, TResult>(Int32, TimeSpan, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, TResult>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Func<TSource, T1, T2, T3, T4, T5, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Func<TSource, T1, T2, T3, T4, T5, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Func<TSource, T1, T2, T3, T4, T5, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Func<TSource, T1, T2, T3, T4, T5, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(Int32, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(int partitionSize, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(Int32, TimeSpan, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Func<TSource, T1, T2, T3, T4, T5, T6, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Func<TSource, T1, T2, T3, T4, T5, T6, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Func<TSource, T1, T2, T3, T4, T5, T6, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Func<TSource, T1, T2, T3, T4, T5, T6, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(Int32, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(int partitionSize, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(Int32, TimeSpan, TSource, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(int partitionSize, TimeSpan timeout, TSource initial, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, TSource step, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
TSource | step | The value to assign the |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, AssignmentOperator, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, AssignmentOperator assignment, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
AssignmentOperator | assignment | One of the enumeration values that specifies the rules to apply for the |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(Int32, TimeSpan, TSource, RelationalOperator, TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel for-loop while providing ways to encapsulate and re-use existing code having a return value.
Declaration
public static IReadOnlyCollection<TResult> ForTask<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(int partitionSize, TimeSpan timeout, TSource initial, RelationalOperator relational, TSource repeats, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
where TSource : struct, IComparable<TSource>, IEquatable<TSource>, IConvertible
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel for-loop operation to complete. |
TSource | initial | The initial value of the |
RelationalOperator | relational | One of the enumeration values that specifies the rules to apply for the |
TSource | repeats | The amount of repeats to do. |
System.Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<TResult> | A System.Collections.Generic.IReadOnlyCollection<T> where the result of |
Type Parameters
Name | Description |
---|---|
TSource | The type of the data in the |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
TResult | The type of the return value of the |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentOutOfRangeException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8>(TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8>(Int32, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8>(int partitionSize, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8>(Int32, TimeSpan, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8>, T1, T2, T3, T4, T5, T6, T7, T8)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8>(int partitionSize, TimeSpan timeout, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel while-loop operation to complete. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Int32, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(int partitionSize, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Int32, TimeSpan, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(int partitionSize, TimeSpan timeout, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel while-loop operation to complete. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Int32, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(int partitionSize, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Int32, TimeSpan, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(int partitionSize, TimeSpan timeout, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel while-loop operation to complete. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
T8 | arg8 | The eighth parameter of the delegate |
T9 | arg9 | The ninth parameter of the delegate |
T10 | arg10 | The tenth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
T8 | The type of the eighth parameter of the delegate |
T9 | The type of the ninth parameter of the delegate |
T10 | The type of the tenth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult>)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult>(TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult> body)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
Remarks
The following table shows the initial overloaded arguments for While<TSource, TResult>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult>).
Argument | Initial Value |
---|---|
partitionSize | 2 + System.Environment.ProcessorCount |
timeout | System.TimeSpan.FromMinutes(Double) set to 2 |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult>(Int32, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult>)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult>(int partitionSize, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult> body)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult>(Int32, TimeSpan, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult>)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult>(int partitionSize, TimeSpan timeout, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult> body)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel while-loop operation to complete. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult> | body | The delegate that is invoked once per iteration. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T>, T)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T>(TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T> body, T arg)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T>(Int32, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T>, T)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T>(int partitionSize, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T> body, T arg)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T>(Int32, TimeSpan, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T>, T)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T>(int partitionSize, TimeSpan timeout, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T> body, T arg)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel while-loop operation to complete. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T> | body | The delegate that is invoked once per iteration. |
T | arg | The parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T | The type of the parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2>, T1, T2)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2>(TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2> body, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2>(Int32, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2>, T1, T2)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2>(int partitionSize, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2> body, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2>(Int32, TimeSpan, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2>, T1, T2)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2>(int partitionSize, TimeSpan timeout, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2> body, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel while-loop operation to complete. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3>(TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3>(Int32, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3>(int partitionSize, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3>(Int32, TimeSpan, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3>, T1, T2, T3)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3>(int partitionSize, TimeSpan timeout, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3> body, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel while-loop operation to complete. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4>(TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4>(Int32, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4>(int partitionSize, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4>(Int32, TimeSpan, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4>, T1, T2, T3, T4)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4>(int partitionSize, TimeSpan timeout, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel while-loop operation to complete. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5>(TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5>(Int32, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5>(int partitionSize, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5>(Int32, TimeSpan, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5>(int partitionSize, TimeSpan timeout, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel while-loop operation to complete. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6>(TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6>(Int32, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6>(int partitionSize, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6>(Int32, TimeSpan, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6>, T1, T2, T3, T4, T5, T6)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6>(int partitionSize, TimeSpan timeout, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel while-loop operation to complete. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7>(TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7>(Int32, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7>(int partitionSize, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7>(Int32, TimeSpan, TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult, T1, T2, T3, T4, T5, T6, T7>, T1, T2, T3, T4, T5, T6, T7)
Provides a generic way of executing a parallel while-loop while providing ways to encapsulate and re-use existing code.
Declaration
public static void While<TSource, TResult, T1, T2, T3, T4, T5, T6, T7>(int partitionSize, TimeSpan timeout, TesterFunc<TSource, TResult, bool> condition, TSource source, Action<TResult, T1, T2, T3, T4, T5, T6, T7> body, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | partitionSize | The maximum number of concurrent worker threads per partition. |
System.TimeSpan | timeout | A System.TimeSpan that represents the time to wait for the parallel while-loop operation to complete. |
TesterFunc<TSource, TResult, System.Boolean> | condition | The condition delegate of the while-loop that is invoked once per iteration and is a member of |
TSource | source | The object being iterated in the encapsulated while-loop by the |
System.Action<TResult, T1, T2, T3, T4, T5, T6, T7> | body | The delegate that is invoked once per iteration. |
T1 | arg1 | The first parameter of the delegate |
T2 | arg2 | The second parameter of the delegate |
T3 | arg3 | The third parameter of the delegate |
T4 | arg4 | The fourth parameter of the delegate |
T5 | arg5 | The fifth parameter of the delegate |
T6 | arg6 | The sixth parameter of the delegate |
T7 | arg7 | The seventh parameter of the delegate |
Type Parameters
Name | Description |
---|---|
TSource | The type of the parameter of the function delegate |
TResult | The type of the out result value of the function delegate |
T1 | The type of the first parameter of the delegate |
T2 | The type of the second parameter of the delegate |
T3 | The type of the third parameter of the delegate |
T4 | The type of the fourth parameter of the delegate |
T5 | The type of the fifth parameter of the delegate |
T6 | The type of the sixth parameter of the delegate |
T7 | The type of the seventh parameter of the delegate |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|