3 ms·
When I'm working with C#, I often write code like so: products .Where(p => p.Price >= range.low && p.Price <= range.high) .GroupBy(p => p.Categ
by steego 11y ago
When I'm working with C#, I often write code like so:
products
.Where(p => p.Price >= range.low && p.Price <= range.high)
.GroupBy(p => p.Category)
.Select(g => new { Category = g.Key.Name, Count = g.Count() })
It's not just about saving a few characters. It's about about making certain types of libraries readable by reducing the amount of noise.