Skip to content

v2.1.7

Compare
Choose a tag to compare
@JonathanMagnan JonathanMagnan released this 07 Jul 11:38
· 224 commits to master since this release

Download the library here

FIXED: IsGenericType now should return correctly true when nullable type is used

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, decimal?>>("GetValue<decimal?>()");

var result = compiled(new AnotherClass() {Value = 7m});

PRO Version unlocked for the current month (July)