Summary
In this chapter, we have learned about the major new additions to the C# language features. We have learned about record types that help us to build immutable reference types with the least plumbing code. We have also learned about pattern matching, and by leveraging this, we can write complex expressions with enhanced code readability. We have also seen how C# 9.0 helps developers with top-level statements and target-typed expressions by removing redundant ceremony code.
With this chapter, we have gained the skills to leverage these new C# 9.0 features in the enterprise e-commerce application that we are going to build in the coming chapters. We will be highlighting the new features of C# 9.0 and .NET 5 throughout this book while implementing different features of our e-commerce application.
In the next section, we will learn about the cross-cutting concerns that form the building blocks of our e-commerce application.