Compiler Error CS0835
Visual Studio 2008
Cannot convert lambda to an expression tree whose type argument 'type' is not a delegate type.
If a lambda expression is converted to an expression tree, the expression tree must have a delegate type for its argument. Furthermore, the lambda expression must be convertible to the delegate type.
To correct this error
Change the type parameter from int to a delegate type, for example Func<int,int>.