6 ms·
You're wrong. A lambda can have a body. Compiles and executes: new Func<string>(() => { var foo = "bar"; return foo; })();
by nrkn 14y ago
You're wrong. A lambda can have a body. Compiles and executes:
new Func<string>(() => {
var foo = "bar";
return foo;
})();