} // 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
} // 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
} // 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
} // proc flush /// <summary></summary> /// <param name="args"></param> /// <returns></returns> public LuaResult read(object[] args) => defaultInput?.read(args) ?? LuaResult.Empty;