ForLoopRuleset Constructor
Definition
- Assemblies
- Cuemon.Threading.dll
ForLoopRuleset()
Initializes a new instance of the ForLoopRuleset<TOperand> class.
public ForLoopRuleset()
Exceptions
- TypeArgumentOutOfRangeException
TOperandis 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
fromTOperandThe rules of a for-loop control flow statement.
toTOperandThe conditional value of the loop control variable.
stepTOperandThe value to assign the loop control variable.
relationRelationalOperatorThe relation between the loop control variable
fromandto.assignmentAssignmentOperatorThe assignment statement of the loop control variable using
step.conditionFunc<TOperand, RelationalOperator, TOperand, bool>The function delegate that represents the condition section of the for loop. Default value is Condition<T>(T, RelationalOperator, T).
iteratorFunc<TOperand, AssignmentOperator, TOperand, TOperand>The function delegate that represents the iterator section of the for loop. Default value is Iterator<T>(T, AssignmentOperator, T).