.NET Core and More, Foundational Sessions

TH09 Learn to Love Lamdas (and LINQ, Too!)

03/05/2020

11:00am - 12:15pm

Level: Introductory to Intermediate

Jeremy Clark

Developer Educator

JeremyBytes.com

Lambda expressions in C# can be confusing the first time you walk up to them. But once you get to know them, you’ll see that they are a great addition to your toolbox. Used properly, they can add elegance and simplicity to your code. And some .NET constructs (such as LINQ) lend themselves to lambda expressions. In addition, lambdas let us scope our variables more appropriately with captured variables. We’ll take a look at how lambda expressions work and see them in action. We’ll also see how LINQ can help us move from imperative programming to declarative programming (a gateway to functional-style programming).

You will learn:

  • The indecipherable syntax of lambda expressions
  • How captured variables let us break typical scope boundaries
  • About LINQ method signatures to use them effectively