// @nuget: Z.Expressions.Eval
using System;
using System.Collections.Generic;
using System.Dynamic;
using Z.Expressions;
public class Program
{
public static void Main()
var evalContext = new EvalContext();
evalContext.AddMethod(@"public bool Test1() {return true;}");
var r1 = evalContext.Compile<Func<bool>>("Test1()");
Console.WriteLine(r1());
evalContext.AddMethod(@"public bool Test1() {return false;}");
var r2 = evalContext.Compile<Func<bool>>("Test1()");
Console.WriteLine(r2());
}