- Loading...
Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

Blocking primary constructor member capture using a Roslyn Analyzer
In this post I describe a Rosyln analyzer you can use to enforce that primary constructors are only used for initialization and never to capture as fields…
in C#
Thoughts about primary constructors: 3 pros and 5 cons
In this post I describe some of the ways I like to use primary constructors and some of the things I don't like about them…
in C#
An introduction to primary constructors in C#12
In this post I introduce C#12 primary constructors, describe the various ways to use them and how they work behind the scenes.…
in C#
Using default interface methods for performance gains in IHeaderDictionary
In this post I look at an example of how default interfaces were used to improve the performance of IHeaderDictionary…

Understanding C# 8 default interface methods
In this post I provide an introduction to default interface methods, how they work at a high level, their typical uses, and some of their sharp edges…
in C#
A brief look at StringValues
In this post I look at the StringValues type, where it's used in ASP.NET Core, why it's useful, how it's implemented, and why.…

