If command
Inheritance: Yea.Reflection.Emit.BaseClasses.CommandBase
Esempio n. 1
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="ifCommand">If command</param>
 public EndIf(If ifCommand)
 {
     IfCommand = ifCommand;
 }
Esempio n. 2
0
 /// <summary>
 ///     Ends an if statement
 /// </summary>
 /// <param name="ifCommand">If command to end</param>
 public virtual void EndIf(If ifCommand)
 {
     SetCurrentMethod();
     var tempCommand = new EndIf(ifCommand);
     tempCommand.Setup();
     Commands.Add(tempCommand);
 }
Esempio n. 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, Comparison comparisonType, VariableBase rightHandSide)
 {
     SetCurrentMethod();
     var tempCommand = new If(comparisonType, leftHandSide, rightHandSide);
     tempCommand.Setup();
     Commands.Add(tempCommand);
     return tempCommand;
 }
Esempio n. 4
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="ifCommand">If command</param>
 public EndIf(If ifCommand)
 {
     IfCommand = ifCommand;
 }