private static T Compile <T>(LambdaExpression ex) where T : class { var lam = LambdaEx.Convert(ex, typeof(T)); return(lam.Compile() as T); }
public void ConvertFailsIfNoArguments() { Assert.Throws <ArgumentException>(() => LambdaEx.Convert(_convert, typeof(Func <int>))); }