Fundamentally, is there any difference between a single-line expression lambda and a statement lambda? Take the following code, for example:
private delegate
If the delegate returns a value, return is necessary in statement lambda as follows.
return
Func foo = (x, y) => { return x == y; }; Func goo = (x, y) => x == y;