Lambda expressions are not valid in the first expression of a 'Select Case' statement
Updated: July 20, 2015
You cannot use a lambda expression for the test expression in a
Select Case statement. Lambda expression definitions return functions, and the test expression of a
Select Case statement must be an elementary data type.
The following code causes this error:
Error ID: BC36635
Examine your code to determine whether a different conditional construction, such as an
If...Then...Elsestatement, would work for you.
You may have intended to call the function, as shown in the following code: