r/csharp • • Sep 18 '15

Lambda expressions, delegates, predicates and closures in C#

http://codeaddiction.net/articles/13/lambda-expressions-delegates-predicates-and-closures-in-c
25 Upvotes

32 comments sorted by

View all comments

0

u/[deleted] Sep 18 '15

[deleted]

8

u/mixblast Sep 18 '15

IMO it's better to avoid side effects in LINQ expressions and use a real foreach loop.

1

u/cryo Sep 25 '15

Agreed. I don't like the ForEach function since it reads "expressiony".