What's new in C# 9?

November 25th 2020 NT Remote Online

Along with .NET 5, a new version of C# was also released. Although it's only been a year since the release of the previous version, multiple new features are being introduced. The most important ones are:

  • The main focus of this release is improved support for immutable types, provided through record types, with expressions and init-only properties.
  • Pattern matching is being extended with new pattern types.
  • Top-level programs and target-typed new expressions can reduce the boilerplate code needed in certain scenarios.

Copyright
Creative Commons License