3 ms·
> They're useful in C# as a way of defining a function within another function (which sometimes makes for more readable code) Why wouldn't you just create anot
by mhurron 15y ago
> They're useful in C# as a way of defining a function within another function (which sometimes makes for more readable code)
Why wouldn't you just create another function in the same class?
- d4nt 15y agoJust personal preference really, if your "isRelevant" filter was only ever going to be used by your "CountRelevantItems" method you might consider it more readable to have the logic of isRelevant right there in the CountRelevantItems method rather than elsewhere in the class.