Skip to content

v2.9.57

Compare
Choose a tag to compare
@JonathanMagnan JonathanMagnan released this 16 Oct 13:42
· 12 commits to master since this release
4f9f71e

Download the library here

  • ADDED: Support to Alias for Static Method when none exist with the initial name
public Execute()
{
	var context = new EvalContext();
	context.RegisterStaticMethod(typeof(AliasMethod));
	context.RegisterAlias("Method3", "Method2");

	var x2 = context.Execute("Method3(2)");
}

public class AliasMethod
{
	public static int Method2(int x)
	{
		return x + x;
	}
}

Trial unlocked for the current month (November)