Loading...

C# 12.0: primary constructors

C# 12.0: primary constructors
C# 12.0's most prominent new feature is the primary constructor syntax. This post describes how it works, and looks at some pros and cons.

Published on:

Learn more
endjin.com
endjin.com

We help small teams achieve big things.

Share post:

Related posts

C# 11.0 new features: ref fields and the scoped keyword

C# 11.0 expanded high-performance, low-allocation functionality. This post describes the importance of the added support for ref fields, and h...

3 months ago

Programming C# 12 Book, by Ian Griffiths, published by O'Reilly Media, is now available to buy.

The latest edition of the book covers all of the additions and changes to the C# language that have been made in C# 11.0 and C# 12.0 including...

4 months ago

Mads Torgersen: The Latest in C# - Episode 291

If you're interested in keeping up with the latest in C# development, this episode featuring Mads Torgersen, the Lead Designer of the C# langu...

8 months ago

ASP.NET Core 8.0 uses C# 12.0's experimental interceptors to enable AOT

C# 12 includes an experimental 'interceptors' feature. If you use trimming or AOT publishing in ASP.NET Core 8.0, you're already using this.

11 months ago

C++ Code Generator: Generate Code Quickly & Accurately

If you're working on a C++ software project, you know how time-consuming writing precise syntax can be. But fear not, as the rise of AI-powere...

1 year ago

Deploying & Debugging C# Web API Custom Connectors from within Visual Studio! 🚀

This video tutorial showcases how to deploy and debug custom connectors for C# web APIs from within Visual Studio. With this informative guide...

1 year ago

Ian Griffiths presenting at Visual Studio Live! 2023 Las Vegas

Ian Griffiths is presenting at Visual Studio Live! in Las Vegas on C# 12, .NET 8, .NET Cold Start in the Cloud, and Building Azure PaaS Apps w...

1 year ago

Ian Griffiths presenting at Visual Studio Live! 2023 Las Vegas

Ian Griffiths is presenting at Visual Studio Live! in Las Vegas on C# 12, .NET 8, .NET Cold Start in the Cloud, and Building Azure PaaS Apps w...

1 year ago

C# 11.0 new features: raw string literals

C# 11.0 adds various improvements to string literals. In this post, Ian explains how raw string literals can make your code more readable.

1 year ago

C# Lambda Discards

C# has gradually been adding support for discards. This article explores how this evolution has led to some surprises.

2 years ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy