C# 12 introduces some new features - at this point in the maturity of the language, some of these are small tweaks, and some are features which are very important but only to a few people, and there are a couple of features I think nearly everyone will use.
I’m Chris B. Behrens, and I’ve been a C# programmer ever since Anders Hejlsburg published his reference paper in 2000. I was a programmer for many years before that as well, and I work in many different languages and platforms, and this gives me a multi-disciplinary perspective that helps me see the big picture with C#.
We’re going to look at each new features introduced in C# 12:
1. Primary Constructors
2. Collection Expressions
3. Inline Arrays
4. Optional / Default Parameters in Lambda Expressions
5. ref readonly Parameters
6. Alias any type
7. The Experimental Attribute
8. Interceptors
And a new .Net feature important to C# developers,
9. .Net Aspire
With all that covered, we’ll look at a scoreboard of the new features and rank them according to how cool and useful they are.
We'll look at all these new features from a working developer's perspective, talk about who will use what, and what we need to be on top of moving forward.