Show / Hide Table of Contents

    Class ParallelTasks

    Provides ways to encapsulate and re-use existing code while adding support for parallel loops and regions.

    Inheritance
    System.Object
    ParallelTasks
    Namespace: Cuemon.Threading
    Assembly: Cuemon.Threading.dll
    Syntax
    public static class ParallelTasks

    Methods

    | Improve this Doc

    For<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 counter in the parallel for-loop.

    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 initial.

    Remarks

    The following table shows the initial overloaded arguments for For<TSource>(TSource, TSource, Action<TSource>).

    ArgumentInitial Value
    partitionSizeCuemon.Threading.ParallelTasks.DefaultNumberOfConcurrentWorkerThreads
    timeoutSystem.TimeSpan.FromMinutes(Double) set to 2
    relationalLessThan
    assignmentAddition
    step1
    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 initial.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 initial.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    System.Action<TSource> body

    The delegate that is invoked once per iteration.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    System.Action<TSource> body

    The delegate that is invoked once per iteration.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 initial.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    System.Action<TSource, T> body

    The delegate that is invoked once per iteration.

    T arg

    The parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    System.Action<TSource, T> body

    The delegate that is invoked once per iteration.

    T arg

    The parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    System.Action<TSource, T1, T2> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    System.Action<TSource, T1, T2> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    System.Action<TSource, T1, T2, T3> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    System.Action<TSource, T1, T2, T3> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    System.Action<TSource, T1, T2, T3, T4> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    System.Action<TSource, T1, T2, T3, T4> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 source.

    Remarks

    The following table shows the initial overloaded arguments for ForEach<TSource>(IEnumerable<TSource>, Action<TSource>).

    ArgumentInitial Value
    partitionSizeCuemon.Threading.ParallelTasks.DefaultNumberOfConcurrentWorkerThreads
    timeoutSystem.TimeSpan.FromMinutes(Double) set to 2
    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 source.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 source.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    T8 arg8

    The eighth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    T8

    The type of the eighth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    T8 arg8

    The eighth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    T8

    The type of the eighth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    T8 arg8

    The eighth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    T8

    The type of the eighth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    T8 arg8

    The eighth parameter of the function delegate body.

    T9 arg9

    The ninth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    T8

    The type of the eighth parameter of the function delegate body.

    T9

    The type of the ninth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    T8 arg8

    The eighth parameter of the function delegate body.

    T9 arg9

    The ninth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    T8

    The type of the eighth parameter of the function delegate body.

    T9

    The type of the ninth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    T8 arg8

    The eighth parameter of the function delegate body.

    T9 arg9

    The ninth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    T8

    The type of the eighth parameter of the function delegate body.

    T9

    The type of the ninth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    T8 arg8

    The eighth parameter of the function delegate body.

    T9 arg9

    The ninth parameter of the function delegate body.

    T10 arg10

    The tenth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    T8

    The type of the eighth parameter of the function delegate body.

    T9

    The type of the ninth parameter of the function delegate body.

    T10

    The type of the tenth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    T8 arg8

    The eighth parameter of the function delegate body.

    T9 arg9

    The ninth parameter of the function delegate body.

    T10 arg10

    The tenth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    T8

    The type of the eighth parameter of the function delegate body.

    T9

    The type of the ninth parameter of the function delegate body.

    T10

    The type of the tenth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    T8 arg8

    The eighth parameter of the function delegate body.

    T9 arg9

    The ninth parameter of the function delegate body.

    T10 arg10

    The tenth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    T8

    The type of the eighth parameter of the function delegate body.

    T9

    The type of the ninth parameter of the function delegate body.

    T10

    The type of the tenth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Remarks

    The following table shows the initial overloaded arguments for ForEachTask<TSource, TResult>(IEnumerable<TSource>, Func<TSource, TResult>).

    ArgumentInitial Value
    partitionSizeCuemon.Threading.ParallelTasks.DefaultNumberOfConcurrentWorkerThreads
    timeoutSystem.TimeSpan.FromMinutes(Double) set to 2
    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T

    The type of the parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T

    The type of the parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T

    The type of the parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 body.

    T2 arg2

    The second parameter of the function delegate body.

    T3 arg3

    The third parameter of the function delegate body.

    T4 arg4

    The fourth parameter of the function delegate body.

    T5 arg5

    The fifth parameter of the function delegate body.

    T6 arg6

    The sixth parameter of the function delegate body.

    T7 arg7

    The seventh parameter of the function delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as source.

    Type Parameters
    Name Description
    TSource

    The type of the data in the source.

    T1

    The type of the first parameter of the function delegate body.

    T2

    The type of the second parameter of the function delegate body.

    T3

    The type of the third parameter of the function delegate body.

    T4

    The type of the fourth parameter of the function delegate body.

    T5

    The type of the fifth parameter of the function delegate body.

    T6

    The type of the sixth parameter of the function delegate body.

    T7

    The type of the seventh parameter of the function delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    source is null -or- body is null.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Remarks

    The following table shows the initial overloaded arguments for For<TSource>(TSource, TSource, Action<TSource>).

    ArgumentInitial Value
    partitionSizeCuemon.Threading.ParallelTasks.DefaultNumberOfConcurrentWorkerThreads
    timeoutSystem.TimeSpan.FromMinutes(Double) set to 2
    relationalLessThan
    assignmentAddition
    step1
    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    System.Func<TSource, T, TResult> body

    The delegate that is invoked once per iteration.

    T arg

    The parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    System.Func<TSource, T, TResult> body

    The delegate that is invoked once per iteration.

    T arg

    The parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T

    The type of the parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    System.Func<TSource, T1, T2, TResult> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    System.Func<TSource, T1, T2, TResult> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    System.Func<TSource, T1, T2, T3, TResult> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    System.Func<TSource, T1, T2, T3, TResult> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    TSource step

    The value to assign the counter according to the rule specified by assignment.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    TSource repeats

    The amount of repeats to do.

    AssignmentOperator assignment

    One of the enumeration values that specifies the rules to apply for the iterator assignment operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 counter in the parallel for-loop.

    RelationalOperator relational

    One of the enumeration values that specifies the rules to apply for the condition relational operator of the parallel for-loop.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Returns
    Type Description
    System.Collections.Generic.IReadOnlyCollection<TResult>

    A System.Collections.Generic.IReadOnlyCollection<T> where the result of body has been stored in the same sequential order as repeats.

    Type Parameters
    Name Description
    TSource

    The type of the data in the initial.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    TResult

    The type of the return value of the body that this function delegate encapsulates.

    Exceptions
    Type Condition
    System.ArgumentNullException

    body is null.

    System.ArgumentOutOfRangeException

    TSource is outside the range of allowed types.
    Allowed types are: System.Byte, System.Decimal, System.Double, System.Int16, System.Int32, System.Int64, System.SByte, System.Single, System.UInt16, System.UInt32 or System.UInt64.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    T8 arg8

    The eighth parameter of the delegate body.

    T9 arg9

    The ninth parameter of the delegate body.

    T10 arg10

    The tenth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    T8

    The type of the eighth parameter of the delegate body.

    T9

    The type of the ninth parameter of the delegate body.

    T10

    The type of the tenth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 condition.

    TResult

    The type of the out result value of the function delegate condition.

    Remarks

    The following table shows the initial overloaded arguments for While<TSource, TResult>(TesterFunc<TSource, TResult, Boolean>, TSource, Action<TResult>).

    ArgumentInitial Value
    partitionSize2 + System.Environment.ProcessorCount
    timeoutSystem.TimeSpan.FromMinutes(Double) set to 2
    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 condition.

    TResult

    The type of the out result value of the function delegate condition.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 condition.

    TResult

    The type of the out result value of the function delegate condition.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T> body

    The delegate that is invoked once per iteration.

    T arg

    The parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T> body

    The delegate that is invoked once per iteration.

    T arg

    The parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T> body

    The delegate that is invoked once per iteration.

    T arg

    The parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T

    The type of the parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T1, T2> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T1, T2> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T1, T2> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T1, T2, T3> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T1, T2, T3> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T1, T2, T3> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T1, T2, T3, T4> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T1, T2, T3, T4> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    System.Action<TResult, T1, T2, T3, T4> body

    The delegate that is invoked once per iteration.

    T1 arg1

    The first parameter of the delegate body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    | Improve this Doc

    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 source.

    TSource source

    The object being iterated in the encapsulated while-loop by the condition delegate.

    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 body.

    T2 arg2

    The second parameter of the delegate body.

    T3 arg3

    The third parameter of the delegate body.

    T4 arg4

    The fourth parameter of the delegate body.

    T5 arg5

    The fifth parameter of the delegate body.

    T6 arg6

    The sixth parameter of the delegate body.

    T7 arg7

    The seventh parameter of the delegate body.

    Type Parameters
    Name Description
    TSource

    The type of the parameter of the function delegate condition.

    TResult

    The type of the out result value of the function delegate condition.

    T1

    The type of the first parameter of the delegate body.

    T2

    The type of the second parameter of the delegate body.

    T3

    The type of the third parameter of the delegate body.

    T4

    The type of the fourth parameter of the delegate body.

    T5

    The type of the fifth parameter of the delegate body.

    T6

    The type of the sixth parameter of the delegate body.

    T7

    The type of the seventh parameter of the delegate body.

    Exceptions
    Type Condition
    System.ArgumentNullException

    condition is null -or- body is null.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX