C#: LINQ vs foreach - Round 1.
- by James Michael Hare
So I was reading Peter Kellner's blog entry on Resharper 5.0 and its LINQ refactoring and thought that was very cool. But that raised a point I had always been curious about in my head -- which is a better choice: manual foreach loops or LINQ?
The answer is not really clear-cut. There are two sides to any code cost…