Exemplo n.º 1
0
        /// <summary>
        /// Unboxes an object
        /// </summary>
        /// <param name="Value">Value to unbox</param>
        /// <param name="ValueType">Type to unbox to</param>
        /// <returns>The resulting variable</returns>
        public virtual VariableBase UnBox(VariableBase Value, Type ValueType)
        {
            UnBox TempCommand = new UnBox(Value, ValueType);

            TempCommand.Setup();
            Commands.Add(TempCommand);
            ++ObjectCounter;
            return(TempCommand.Result);
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Unboxes an object
        /// </summary>
        /// <param name="value">Value to unbox</param>
        /// <param name="valueType">Type to unbox to</param>
        /// <returns>The resulting variable</returns>
        public virtual VariableBase UnBox(VariableBase value, Type valueType)
        {
            var tempCommand = new UnBox(value, valueType);

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