site image
Andrew Lock avatar

Andrew Lock

C#
  1. Loading...
  2. Sponsored by Nick Chapsas—Want to learn how to build elegant REST APIs in .NET? Get 5% off Nick's latest course "From Zero to Hero: REST APIs in .NET"!

    From Zero to Hero: REST APIs in .NET
  3. ASP.NET Core in Action, Third Edition

    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. Get 45% off with the code pblock3, only until August 17th!

  4. Banner image for Replacing method calls with Interceptors

    Replacing method calls with Interceptors

    Exploring the .NET 8 preview - Part 5

    In this post I look at the C#12 feature, interceptors. I show how and why they're useful, and how the ASP.NET Core minimal API source generator uses them…

  5. Banner image for Fighting with nullable reference types in Razor Pages

    Fighting with nullable reference types in Razor Pages

    In this post I discuss C#'s nullable reference types in the context of Razor Pages, why they don't play nicely together and how to improve the experience.…

     in  Razor Pages C#
  6. Banner image for Counting the leading zeroes in a binary number with C#

    Counting the leading zeroes in a binary number with C#

    In this post I describe an algorithm to count the number of leading zeroes in a ulong, study how it works, and benchmark it against alternatives.…

     in  C#
  7. Banner image for Working with System.Random and threads safely in .NET Core and .NET Framework

    Working with System.Random and threads safely in .NET Core and .NET Framework

    In this post I look at some of the ways you can misuse System.Random, comparing .NET Framework, NET Core, and .NET 6 implementations.…

     in  C#
  8. Banner image for Creating a source generator

    Creating a source generator

    In this series I describe how to create a source generator, cover issues such as testing the generator, and creating a NuGet package.…

     in  .NET Core C# Source Generators
  9. Banner image for ValueStringBuilder: a stack-based string-builder

    ValueStringBuilder: a stack-based string-builder

    A deep dive on StringBuilder - Part 6

    In this post I discuss the ValueStringBuilder type, used internally in .NET as a zero/low-allocation alternative to StringBuilder…

     in  .NET Core C# Source Code Dive Performance
Andrew Lock | .Net Escapades
Want an email when
there's new posts?