Example #1
0
        /// <summary>
        /// Creates a local variable
        /// </summary>
        /// <param name="Name">Name of the local</param>
        /// <param name="LocalType">Object type</param>
        /// <returns>The variable</returns>
        public virtual VariableBase CreateLocal(string Name, Type LocalType)
        {
            SetCurrentMethod();
            DefineLocal TempCommand = new DefineLocal(Name, LocalType);

            TempCommand.Setup();
            Commands.Add(TempCommand);
            return(TempCommand.Result);
        }
Example #2
0
        /// <summary>
        ///     Creates a local variable
        /// </summary>
        /// <param name="name">name of the local</param>
        /// <param name="localType">Object type</param>
        /// <returns>The variable</returns>
        public virtual VariableBase CreateLocal(string name, Type localType)
        {
            SetCurrentMethod();
            var tempCommand = new DefineLocal(name, localType);

            tempCommand.Setup();
            Commands.Add(tempCommand);
            return(tempCommand.Result);
        }