Table of Contents

Iterator Method

Definition

Namespace
Cuemon.Threading
Assemblies
Cuemon.Threading.dll
Source
src/Cuemon.Threading/AdvancedParallelFactory.cs

Iterator<T>(T, AssignmentOperator, T)

Provides a default implementation of a for-iterator callback method.

public static T Iterator<T>(T current, AssignmentOperator assignment, T step) where T : struct, IComparable<T>, IEquatable<T>, IConvertible

Parameters

current T

The current value of the counter in a for-loop.

assignment AssignmentOperator

One of the enumeration values that specifies the rules to apply as the assignment operator for left-hand operand current and right-hand operand step.

step T

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

Returns

T

The computed result of current having the assignment of step.

Type Parameters

T

The type of the counter in a for-loop.