Exemplo n.º 1
0
        // READ + RUN MAIN FUNCTION
        public dynamic InterpretReport(string path)
        {
            ReadReport(path);

            if (!Report.Paragraphs.Any(x => x.Value.isMainFunction))
            {
                throw new Exception("Main paragraph not found");
            }

            return(Report.RunParagraph(Report.Paragraphs.Where(x => x.Value.isMainFunction).FirstOrDefault().Key));
        }