Example #1
0
        }         // ctor

        public bool MoveNext()
        {
            if (file.IsClosed)
            {
                if (closeOnEnd)
                {
                    file.close();
                }
                return(false);
            }
            else
            {
                returnIndex++;
                if (returns == null || returnIndex >= returns.Length)                 // read returns
                {
                    returnIndex = 0;
                    returns     = file.read(args);
                }
                return(true);
            }
        }         // func MoveNext
Example #2
0
        }         // ctor

        public bool MoveNext()
        {
            if (file.IsClosed || file.TextReader.EndOfStream)
            {
                if (lCloseOnEnd)
                {
                    file.close();
                }
                return(false);
            }
            else
            {
                iReturnIndex++;
                if (returns == null || iReturnIndex >= returns.Length)                 // read returns
                {
                    iReturnIndex = 0;
                    returns      = file.read(args);
                }
                return(true);
            }
        }         // func MoveNext
Example #3
0
        } // proc flush

        /// <summary></summary>
        /// <param name="args"></param>
        /// <returns></returns>
        public LuaResult read(object[] args)
        {
            return(defaultInput == null ? LuaResult.Empty : defaultInput.read(args));
        } // proc read
Example #4
0
        }         // proc flush

        /// <summary></summary>
        /// <param name="args"></param>
        /// <returns></returns>
        public LuaResult read(object[] args)
        => defaultInput?.read(args) ?? LuaResult.Empty;