I just started working on a project with an existing code base. While looking over the project, I found an odd lambda that I'm trying to understand.
Here's the code:
SomeFunction(x => () => new Y());
I don't understand...
- why there are two
=>
operators in the callback. - what is the purpose of the
()
.
For reference, here is the method signature of SomeFunction
:
ISomeInterface<T> SomeFunction(Func<IXInterface, T> method);