using System; using FormulaEnginePoC.FormulaEngine; namespace FormulaEnginePoC.CSharpProvider { public class FormulaCompiler { public static Func Compile(string expression) { var exp = new ExpressionCompiler>(expression); exp.AddReferenceAssembly(typeof(MoreFunction).Assembly.Location); exp.AddNamespace(typeof(MoreFunction).Namespace); exp.Compile(); return exp.CompiledDelegate; } } }