Class ForLoopRuleset<TOperand>
Specifies the rules of a for-loop control flow statement.
public class ForLoopRuleset<TOperand> where TOperand : struct, IComparable<TOperand>, IEquatable<TOperand>, IConvertible
  Type Parameters
TOperandThe type of the number used with the loop control variable.
- Inheritance
 - 
      
      ForLoopRuleset<TOperand>
 
Constructors
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).
Exceptions
- TypeArgumentOutOfRangeException
 TOperandis outside the range of allowed types.
Allowed types are: byte, decimal, double, short, int, long, sbyte, float, ushort, uint or ulong.
Properties
Assignment
Gets or sets the assignment statement of the loop control variable using Step.
public AssignmentOperator Assignment { get; set; }
  Property Value
- AssignmentOperator
 The assignment statement of the loop control variable.
Condition
Gets or sets the function delegate of a for-condition.
public Func<TOperand, RelationalOperator, TOperand, bool> Condition { get; set; }
  Property Value
- Func<TOperand, RelationalOperator, TOperand, bool>
 The function delegate of a for-condition.
From
Gets or sets the initial value of the loop control variable.
public TOperand From { get; set; }
  Property Value
- TOperand
 The initial value of the loop control variable.
Iterator
Gets or sets the function delegate of a for-iterator.
public Func<TOperand, AssignmentOperator, TOperand, TOperand> Iterator { get; set; }
  Property Value
- Func<TOperand, AssignmentOperator, TOperand, TOperand>
 The function delegate of a for-iterator.
Relation
public RelationalOperator Relation { get; set; }
  Property Value
- RelationalOperator
 The relation between the loop control variable.
Step
Gets or sets the number to assign the loop control variable.
public TOperand Step { get; set; }
  Property Value
- TOperand
 The number to assign the loop control variable.
To
Gets or sets the conditional value of the loop control variable.
public TOperand To { get; set; }
  Property Value
- TOperand
 The conditional value of the loop control variable.