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. You even get a free copy of the first edition of ASP.NET Core in Action!
In this post I compare several different ways to call a constructor using reflection, and benchmark them to see which is fastest.…
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.…
In this post I describe how to draw a tree-like directory structure using ASCII art in C#…
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.…
In this post I describe two extension methods that make logging scopes as key-value pairs nicer in ASP.NET Core, by using anonymous types and tuples.…
In this post I describe a feature I only recently discovered: alignment in interpolated strings…
Stay up to the date with the latest posts!