public virtual If If(VariableBase LeftHandSide, Enums.Comparison ComparisonType, VariableBase RightHandSide) { SetCurrentMethod(); Utilities.Reflection.Emit.Commands.If TempCommand = new If(ComparisonType, LeftHandSide, RightHandSide); TempCommand.Setup(); Commands.Add(TempCommand); return TempCommand; }
/// <summary> /// Constructor /// </summary> /// <param name="IfCommand">If command</param> public EndIf(If IfCommand) : base() { this.IfCommand = IfCommand; }
public virtual void EndIf(If IfCommand) { SetCurrentMethod(); EndIf TempCommand = new EndIf(IfCommand); TempCommand.Setup(); Commands.Add(TempCommand); }