Level: Introductory to Intermediate
Lambda expressions can be confusing the first time you see them. But once you get to know them, you'll see that they are a great addition to your toolbox. Used properly, they add elegance and simplicity to your code. And Language Integrated Query (LINQ) lends itself to lambda expressions. You'll take a look at what lambda expressions are, how they work, and how easy they are to use. Along the way, you'll see how to take advantage of functional-style programming in your C# code.
You will learn:
- How to use captured variables for proper scoping
- How lambda expressions can help us use Language Integrated Query (LINQ) effectively
- The difference between imperative programming and functional programming