2

Expressions and Statements

Welcome to the first hands-on chapter of our journey! In this chapter, we are going to discuss expressions and statements, lambda expressions, and expression trees. These are the topics we will cover:

  • Understanding the difference between expressions and statements
  • Writing clear and declarative code using expressions
  • Utilizing expression-bodied members, lambda expressions, anonymous methods, and local functions effectively
  • Manipulating expressions at runtime using expression trees

Before we dive in, I want to tell you that I value your time, so most of the chapters will start with assessment tasks. These tasks are not meant to be solved all the time and are aimed to help you measure your existing understanding of ...

Get Functional Programming with C# 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.