/// <summary> /// Adds the elements of an array to the end of this StatementCollection. /// </summary> /// <param name="items"> /// The array whose elements are to be added to the end of this StatementCollection. /// </param> public virtual void AddRange(Statement[] items) { foreach (Statement item in items) { this.List.Add(item); } }
public IterationStatement(Statement initStatement, Expression testExpression, Statement incrementStatement) { if (testExpression==null) throw new ArgumentNullException("testExpression"); this.initStatement = initStatement; this.testExpression = testExpression; this.incrementStatement = incrementStatement; }
public LabeledStatement(string label, Statement statement) { if (label==null) throw new ArgumentNullException("label"); if (statement ==null) throw new ArgumentNullException("statement"); this.label = label; this.statement = statement; }
public static IterationStatement For( Statement initStatement, Expression testExpression, Statement incrementStatement ) { return new IterationStatement(initStatement,testExpression,incrementStatement); }
/// <summary> /// Adds an instance of type Statement to the end of this StatementCollection. /// </summary> /// <param name="value"> /// The Statement to be added to the end of this StatementCollection. /// </param> public virtual void Add(Statement value) { this.List.Add(value); }
/// <summary> /// Initializes a new instance of the StatementCollection class, containing elements /// copied from an array. /// </summary> /// <param name="items"> /// The array whose elements are to be added to the new StatementCollection. /// </param> public StatementCollection(Statement[] items) { this.AddRange(items); }
public virtual void Insert(int index, Statement value) { this.List.Insert(index, value); }