Skip to content

v2.1.6

Compare
Choose a tag to compare
@JonathanMagnan JonathanMagnan released this 06 Jul 15:03
· 225 commits to master since this release

Download the library here

FIXED: Issue with generic method without prefix

public class AnotherClass
{
	public object Value { get; set; }

	public T GetValue<T>()
	{
		return (T) Value;
	}
}

EvalManager.DefaultContext.RegisterType(typeof(AnotherClass));

// WAS not compiling before
var compiled = Eval.Compile<Func<AnotherClass, string>>("GetValue<string>()");

var result = compiled(new AnotherClass() {Value = "23"});

PRO Version unlocked for the current month (July)