More Effective C#: 50 Specific Ways to Improve Your C#

Category: Programming
Author: Bill Wagner
All Stack Overflow 16


by anonymous   2017-08-20

Since you want something in the same line of Effective Java the following two books are very similar:

Effective C#

More Effective C#

by anonymous   2017-08-20

In both cases you are creating what's called a closure. Essentially, count is being wrapped in a class and that class is being used by the lambda expression.

Bill Wagner has a great book called More Effective C# and he has a blog post that describes closures in more detail.