What's New in C# 12

What the new features are, and whether you should care

Ratings: 0.00 / 5.00




Description

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.

What You Will Learn!

  • New features in C# 12
  • Applicability of new features in C# 12
  • C# 12 Primary Constructors
  • C# 12 Default values for lambda parameters

Who Should Attend!

  • C# developers