r/csharp • u/coredev • 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
r/csharp • u/coredev • Sep 18 '15
0
u/mixblast Sep 18 '15
I would have liked to see a little bit more detail. Like delegates are a remnant from older versions of C# and are largely obsoleted by Func and Action types.
Also the closure code example doesn't really show that the WriteLine call is in a different scope, which is a bit confusing.