예제 #1
0
 /// <summary>
 /// Ends an if statement
 /// </summary>
 /// <param name="IfCommand">If command to end</param>
 public virtual void EndIf(If IfCommand)
 {
     SetCurrentMethod();
     EndIf TempCommand = new EndIf(IfCommand);
     TempCommand.Setup();
     Commands.Add(TempCommand);
 }
예제 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="IfCommand">If command</param>
 public EndIf(If IfCommand)
     : base()
 {
     this.IfCommand = IfCommand;
 }
예제 #3
0
 /// <summary>
 /// Creates an if statement
 /// </summary>
 /// <param name="LeftHandSide">Left hand side variable</param>
 /// <param name="ComparisonType">Comparison type</param>
 /// <param name="RightHandSide">Right hand side variable</param>
 /// <returns>The if object</returns>
 public virtual If If(VariableBase LeftHandSide, Enums.Comparison ComparisonType, VariableBase RightHandSide)
 {
     SetCurrentMethod();
     YunShop.Utilities.Reflection.Emit.Commands.If TempCommand = new If(ComparisonType, LeftHandSide, RightHandSide);
     TempCommand.Setup();
     Commands.Add(TempCommand);
     return TempCommand;
 }