site image
Andrew Lock avatar

Andrew Lock

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

  4. Banner image for A failed experiment with interceptors in C# 12 and .NET 8

    A failed experiment with interceptors in C# 12 and .NET 8

    In this post I described how I tried (and failed) to add an interceptor for Enum.ToString(), due to a bug in the Roslyn compiler.…

     in  ASP.NET Core NuGet Source Generators C#
  5. 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…

  6. Banner image for Exploring the new minimal API source generator

    Exploring the new minimal API source generator

    Exploring the .NET 8 preview - Part 4

    In this post I take a look at the new minimal API source generator added in .NET 8 preview 3 to support AOT, and explore the code it generates.…

  7. Banner image for Using the new configuration binder source generator

    Using the new configuration binder source generator

    Exploring the .NET 8 preview - Part 1

    In this post I introduce the new configuration binder source generator added in .NET 8 preview 3, explore how it works, and how to use it in your apps.…

  8. Banner image for Tracking down a hanging xUnit test in CI: building a custom Test Framework

    Tracking down a hanging xUnit test in CI: building a custom Test Framework

    In this post I describe how we tracked down a hanging xUnit test by building a custom XuniTestFramework implementation…

     in  .NET Core .NET Core 6 Source Generators
  9. Banner image for Cancelling await calls in .NET 6 with Task.WaitAsync()

    Cancelling await calls in .NET 6 with Task.WaitAsync()

    In this post I discuss the new Task.WaitAsync() APIs introduced in .NET 6 and how you can use them to cancel an await call…

     in  .NET Core .NET Core 6 Source Generators
Andrew Lock | .Net Escapades
Want an email when
there's new posts?