Table of Contents

ForLoopRuleset Constructor

Definition

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

ForLoopRuleset()

Initializes a new instance of the ForLoopRuleset<TOperand> class.

public ForLoopRuleset()

Exceptions

TypeArgumentOutOfRangeException

TOperand is outside the range of allowed types.
Allowed types are: byte, decimal, double, short, int, long, sbyte, float, ushort, uint or ulong.

ForLoopRuleset(TOperand, TOperand, TOperand, RelationalOperator, AssignmentOperator, Func<TOperand, RelationalOperator, TOperand, bool>, Func<TOperand, AssignmentOperator, TOperand, TOperand>)

Initializes a new instance of the ForLoopRuleset<TOperand> class.

public ForLoopRuleset(TOperand from, TOperand to, TOperand step, RelationalOperator relation = RelationalOperator.LessThan, AssignmentOperator assignment = AssignmentOperator.Addition, Func<TOperand, RelationalOperator, TOperand, bool> condition = null, Func<TOperand, AssignmentOperator, TOperand, TOperand> iterator = null)

Parameters

from TOperand

The rules of a for-loop control flow statement.

to TOperand

The conditional value of the loop control variable.

step TOperand

The value to assign the loop control variable.

relation RelationalOperator

The relation between the loop control variable from and to.

assignment AssignmentOperator

The assignment statement of the loop control variable using step.

condition Func<TOperand, RelationalOperator, TOperand, bool>

The function delegate that represents the condition section of the for loop. Default value is Condition<T>(T, RelationalOperator, T).

iterator Func<TOperand, AssignmentOperator, TOperand, TOperand>

The function delegate that represents the iterator section of the for loop. Default value is Iterator<T>(T, AssignmentOperator, T).

Exceptions

TypeArgumentOutOfRangeException

TOperand is outside the range of allowed types.
Allowed types are: byte, decimal, double, short, int, long, sbyte, float, ushort, uint or ulong.