- 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.

Understanding Lazy<T> thread safety modes
In this post I look at how the different `LazyThreadSafetyMode` values work with `Lazy<T>`, and how exceptions are handled for each mode…
in .NET Core
An introduction to Compact Binary Object Representation (CBOR) in .NET
In this post I introduce CBOR as a JSON alternative, and show how to use the System.Formats.Cbor NuGet package to read and write CBOR encoded data…
in .NET Core
Stripping extra dependencies in .NET NativeAOT apps using linker substitutions
In this post I describe how to perform method-substitutions with the NativeAOT linker to remove additional dependencies that the linker couldn't see were unused…

Finding the total number of processors on a machine with .NET
In this post I show how to find the total number of logical CPUs on a host (not just those available to a process); something that isn't exposed in modern .NET…

Configuring contextual options with Microsoft.Extensions.Options.Contextual
In this post I take a brief look at the Microsoft.Extensions.Options.Contextual package to understand what it's for, how to use it, and whether to use it or not…

Splitting the NetEscapades.EnumGenerators packages: the road to a stable release
In this post I describe the recent architectural changes to the NetEscapades.EnumGenerators package, which is now a metapackage, to support more scenarios…

