3 ms·
It really works without any issues in C# from my experience. Statemends like : list.Where(e => e.Property == ExpectedValue).Select(e => e.Property) is mu
by rubber_duck 10y ago
It really works without any issues in C# from my experience.
Statemends like :
list.Where(e => e.Property == ExpectedValue).Select(e => e.Property)
is much cleaner than something like :
list.Where([](auto e) { return e.Property == ExpectedValue; }).Select([](auto e) { return e.Property; });
Braces and capture declaration adds 0 value here and it's ~80% of the use cases I see for lambdas.