C# 9.0 adds the accompanying highlights and improvements to the C# language:
Sl.No | Details |
1 | Records |
2 | Target-typed new expressions |
3 | Init only setters |
4 | Pattern matching enhancements |
5 | Top-level statements |
6 | Native sized integers |
7 | Suppress emitting localsinit flag |
8 | Function pointers |
9 | Static anonymous functions |
10 | Target-typed conditional expressions |
11 | Extension GetEnumerator support for foreach loops |
12 | Covariant return types |
13 | New features for partial methods |
14 | Lambda discard parameters |
15 | Module initializers |
16 | Attributes on local functions |