Compile Error: Create a delegate when there is a conditional attribute

Solution: Wrapping in lambda function.

Link