Ejemplo n.º 1
0
 public CodeConditionStatement(CodeExpression condition,
                               CodeStatement[] trueStatements,
                               CodeStatement[] falseStatements)
 {
     this.condition = condition;
     TrueStatements.AddRange(trueStatements);
     FalseStatements.AddRange(falseStatements);
 }
Ejemplo n.º 2
0
 /// <devdoc>
 ///    <para>
 ///       Initializes a new instance of <see cref='System.CodeDom.CodeConditionStatement'/>.
 ///    </para>
 /// </devdoc>
 public CodeConditionStatement(CodeExpression condition, params CodeStatement[] trueStatements)
 {
     Condition = condition;
     TrueStatements.AddRange(trueStatements);
 }
 public CodeConditionStatement(ILInstruction inline, CodeExpression condition, CodeStatement[] trueStatements, CodeStatement[] falseStatements) : base(inline)
 {
     Condition = condition;
     TrueStatements.AddRange(trueStatements);
     FalseStatements.AddRange(falseStatements);
 }
Ejemplo n.º 4
0
 public CodeIfStatement(CodeExpression condition, IEnumerable <CodeStatement> trueStatements, IEnumerable <CodeStatement> falseStatements)
 {
     Condition = condition;
     TrueStatements.AddRange(trueStatements);
     FalseStatements.AddRange(falseStatements);
 }