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 ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.