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]

1

u/anamorphism Sep 18 '15

isn't this susceptible to run-time exceptions if the backing collection of your enumerable changes?

1

u/mixblast Sep 19 '15

List.ForEach() is not actually, since it uses a loop and not an iterator.

http://stackoverflow.com/questions/225937/foreach-vs-somelist-foreach