Chapter 15: New Features of C# 8
C# is a mature programming language, but it is still evolving to satisfy new requirements coming from emergent software architectures. The main focus of most of the four language versions of C# 7 is on providing the tools for impressive performance when using value types.
With the latest version, C# 8 introduces many new important features focusing on four main areas: making code more compact and easier to read, along with performance, robustness, and expressivity. The fundamental change in C# 8 is that it is the first release of the language without official support in .NET Framework because some of its features require the .NET Core runtime enhancements.
In this chapter, we will go through the following new language features:
- Nullable reference types
- Default implementation of interface members
- Ranges and indices
- Pattern matching
- The using declaration
- Asynchronous Dispose
- Disposable patterns in structs and ref...