Exemple #1
0
        /// <summary>
        /// Adds a ReturnFrame for the specified variable
        /// </summary>
        /// <param name="returnVariable"></param>
        /// <returns></returns>
        public FramesCollection Return(Variable returnVariable)
        {
            var frame = new ReturnFrame(returnVariable);

            Add(frame);
            return(this);
        }
Exemple #2
0
        /// <summary>
        /// Adds a ReturnFrame to the method that will return a variable of the specified type
        /// </summary>
        /// <param name="returnType"></param>
        /// <returns></returns>
        public FramesCollection Return(Type returnType)
        {
            var frame = new ReturnFrame(returnType);

            Add(frame);
            return(this);
        }