Technical requirements
All code examples from this chapter can be downloaded from the GitHub repository: https://github.com/PacktPublishing/Adopting-.NET-5--Architecture-Migration-Best-Practices-and-New-Features/tree/master/Chapter02.
The sample code for the performance benchmark project discussed in the Performance improvements section and the player value calculator service from Writing less code with pattern matching are provided as a working solution. As other examples are short code snippets, these don't require the creation of a full C# solution to explore and execute. You can instead use a tool named LINQPad 6 (explained further in the next section).
Having prior knowledge of C#
Basic familiarity with C# is a pre requisite for this chapter. It is not necessary (though it's helpful) for you to be aware of C# 7 and C# 8 features, but a working knowledge of C# up to version 6 is essential to understand the differentiating features of C# 9 described in this chapter...