Beispiel #1
0
		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>();
		}
Beispiel #2
0
		public IIf ElseIf(Condition elseIfCondition)
		{
			var elseIf = new If(elseIfCondition, this);
			ElseCodeLines.Add(elseIf);
			return elseIf;
		}