示例#1
0
 public override Yielding Copy(string renameSuffix)
 {
     CaseStatement[] caseStatementsCopy = new CaseStatement[CaseStatements.Length];
     for(int i = 0; i < CaseStatements.Length; ++i)
         caseStatementsCopy[i] = (CaseStatement)CaseStatements[i].Copy(renameSuffix);
     return new SwitchStatement(SwitchExpression.Copy(renameSuffix), caseStatementsCopy);
 }
示例#2
0
 public SwitchStatement(Expression switchExpression, CaseStatement[] caseStatements)
 {
     SwitchExpression = switchExpression;
     CaseStatements = caseStatements;
 }