예제 #1
0
        private static T Compile <T>(LambdaExpression ex)
            where T : class
        {
            var lam = LambdaEx.Convert(ex, typeof(T));

            return(lam.Compile() as T);
        }
예제 #2
0
 public void ConvertFailsIfNoArguments()
 {
     Assert.Throws <ArgumentException>(() => LambdaEx.Convert(_convert, typeof(Func <int>)));
 }