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

A deep dive on StringBuilder
In this series I look at the source code behind StringBuilder, show how it is used to reduce allocations, and dig into some internal optimisations…

Conditional compilation for ignoring method calls with the ConditionalAttribute
In this post I describe conditional compilation using…

Benchmarking 4 reflection methods for calling a constructor in .NET
In this post I compare several different ways to call a constructor using reflection, and benchmark them to see which is fastest.…

Why is string.GetHashCode() different each time I run my program in .NET Core?
In this post I discuss string.GetHashCode(), why it's randomised, and hash-attacks. I also provide a deterministic implementation you can use when it's safe.…

Creating an ASCII-art tree in C#
In this post I describe how to draw a tree-like directory structure using ASCII art in C#…

Creating a .NET Standard Roslyn Analyzer in Visual Studio 2017
In this post, I give a brief introduction to Roslyn analyzers, what they're for, and how to create a simple analyzer in Visual Studio 2017.…

