v2.1.7
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)