internal If(Condition condition, If parentIf = null) { ParentIf = parentIf; if (condition == null) throw new ArgumentException(); Condition = condition; ThenCodeLines = new List<ICodeLine>(); ElseCodeLines = new List<ICodeLine>(); }
public IIf ElseIf(Condition elseIfCondition) { var elseIf = new If(elseIfCondition, this); ElseCodeLines.Add(elseIf); return elseIf; }