ILSpy icon indicating copy to clipboard operation
ILSpy copied to clipboard

Use lambda syntax in more places

Open ahdung opened this issue 3 years ago • 3 comments

version: 6.2.1.6137 image

ahdung avatar Dec 14 '20 04:12 ahdung

Currently this is by design:

https://github.com/icsharpcode/ILSpy/blob/e82e144fb65b53a4e4bfcc2a31ad9cdde296f583/ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs#L2293-L2297

siegfriedpammer avatar Dec 14 '20 09:12 siegfriedpammer

We do not use lambda syntax if the return type is void or there are multiple statements in the body. Do we want to change that?

siegfriedpammer avatar Dec 14 '20 09:12 siegfriedpammer

So why do this design? I think people like lambda more than anonymous functions.

ahdung avatar Dec 15 '20 06:12 ahdung