public static void Main()
var context = new EvalContext();
context.UseCache = false;
context.RegisterStaticMember(typeof(Program));
dynamic expando = new ExpandoObject();
expando.Program = new ExpandoObject();
expando.Program.ValueForTypeOrDynamic = 99;
var r1 = context.Execute("Program.ValueForTypeOrDynamic", expando);
Console.WriteLine("1 - Result: " + r1);
context.UseTypeBeforeDynamic = true;
var r2 = context.Execute("ValueForTypeOrDynamic", expando);
Console.WriteLine("2 - Result: " + r2);
public static int ValueForTypeOrDynamic = 13;