Variable Scoping in Anonymous Delegates in C#(west-wind.com)
submitted by
rstrahl(7226) 4 years ago
On a few occasions anonymous methods still throw me for a conceptual loop. Anonymous methods work like closures and so variable scoping can be extended into these anonymous methods from the calling method scope which is pretty damn useful and the basis for what makes Lambda expressions work in the first place.
|category: C#
|Views: 17
tags:
C# another
Everyones tags:
Your Tags: