Example #1
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();
     Utilities.Reflection.Emit.Commands.If TempCommand = new If(ComparisonType, LeftHandSide, RightHandSide);
     TempCommand.Setup();
     Commands.Add(TempCommand);
     return(TempCommand);
 }
Example #2
0
        /// <summary>
        /// Creates a while 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 while object</returns>
        public virtual While While(VariableBase LeftHandSide, Enums.Comparison ComparisonType, VariableBase RightHandSide)
        {
            SetCurrentMethod();
            While TempCommand = new While(ComparisonType, LeftHandSide, RightHandSide);

            TempCommand.Setup();
            Commands.Add(TempCommand);
            return(TempCommand);
        }