v4.0.71
Download the library here
- ADDED: Extension method added using
AddMethod
can now use other extension methods without having to use the variable (the call toTest111()
was not working before in previous version)
var context = new EvalContext();
context.UnregisterAll();
context.RegisterType(typeof(PlayerJournal));
context.AddMethod(@"public bool Test111(this PlayerJournal pj)
{
return true;
}");
// this method was not working before
context.AddMethod(@"public bool Test222(this PlayerJournal pj)
{
return Test111();
}");
var c1 = context.Compile<Func<PlayerJournal, bool>>("Test222()");
Trial unlocked until the end of February