Ejemplo n.º 1
0
        private static void ExampleOfMethodDefinationWithParamters()
        {
            var method = "public int SumNumbers(int x, int y) {{ return x + y; }}";

            var complier = new MethodComplier();

            var success1 = complier.CompileMethod(method);

            if (!success1) PrintErrorsToConsole(complier.GetErrors());
            else
            {
                var result = complier.Run(15, 4);

                Console.WriteLine("No Return Value Results = {0}", result);
            }
        }