Chapter 3: Introducing C# 9
C# is an elegant and type-safe object-oriented programming language that enables developers to build many types of secure and robust applications that run in the .NET ecosystem and is in the top 5 of the list of popular programming languages published by GitHub.
C# was initially developed by Anders Hejlsberg at Microsoft as part of the .NET initiative. Since its first release in January 2002, there have been new features added consistently to the language to improve performance and productivity.
The latest version at the time of writing this, C# 9.0, was released in November 2020, targeting .NET 5. While C# 9.0 is not a major release in terms of new features, there are quite a few interesting additions and enhancements, which we will learn about in this chapter:
- Understanding Init-only setters
- Working with record types
- Understanding top-level statements
- Examining objects with pattern matching
- Understanding type inference with...