News for hackers. Stuff that matters.
Re:What’s New in C# 7.0 by briHass on Thursday August 25, 2016 @10:53AM (#12359452)
The brackets, maybe. Preferences for brackets for single lines vary. I personally don't like them, but many code style guides (including MS's) recommend them.

The LINQ version should be allowed almost everywhere that has a good development group. Sometimes LINQ queries can get hairier than the equivalent foreach, but I've never worked anywhere that would frown upon the shorter/cleaner LINQ.

There are no comments on this comment yet.