Skip to content

v4.0.71

Compare
Choose a tag to compare
@JonathanMagnan JonathanMagnan released this 18 Jan 16:42
· 2 commits to master since this release
3addeba

Download the library here

  • ADDED: Extension method added using AddMethod can now use other extension methods without having to use the variable (the call to Test111() 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