Exemplo n.º 1
0
        public void Compile(string pasterGuid, bool isPrivate, string path)
        {
            var evaller = new Eval(path);
            evaller.CompileAndEval(this.Code, this.Language);

            this.AddCompilerErrors(evaller.Errors);
            this.AddILDisassemblyText(evaller.FormattedILDisassembly);
            this.Output = string.Join(Environment.NewLine, evaller.Output ?? new string[] { });

            this.Paster = !Guid.TryParse(pasterGuid, out this._paster) ? Guid.NewGuid() : this.Paster;
            this.IsPrivate = isPrivate;
        }