Iterator Method
Definition
- Assemblies
- Cuemon.Threading.dll
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
currentTThe current value of the counter in a for-loop.
assignmentAssignmentOperatorOne of the enumeration values that specifies the rules to apply as the assignment operator for left-hand operand
currentand right-hand operandstep.stepTThe value to assign to
currentaccording to the rule specified byassignment.
Returns
- T
The computed result of
currenthaving theassignmentofstep.
Type Parameters
TThe type of the counter in a for-loop.