Lambda Expressions
Lambda expressions have existed in .NET development since Visual Basic 2008. Because of their flexibility, they are one of the most important additions to .NET programming languages. The main purpose of lambda expressions, as for other language features, is related to LINQ, as you see in the next chapters. They can also be successfully used in many programming scenarios. Lambda expressions in Visual Basic are anonymous methods that can be generated on-the-fly within a line of code and can replace the use of delegates. The easiest explanation of lambdas is that you can use a lambda wherever you need a delegate.
Understanding Lambda Expressions
Lambda expressions are powerful, but they are probably not easy to understand at ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access