Since lambda is not related to the type of delegation, you need to specify the type of delegate when you define lambda, either on the left side or on the right side.
This should do the trick:
int result = new Transformer(x => x * x)(9);
Same thing more succinctly:
int x = 9;
int result = x * x;
source
share