site image
Andrew Lock avatar

Andrew Lock

Source Generators
  1. Loading...
  2. Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

    30% off with code ANDREW30 on Dometrain Pro
  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 NetEscapades.EnumGenerators: a source generator for enum performance

    NetEscapades.EnumGenerators: a source generator for enum performance

    In this post I describe a source generator I created to improve the performance of enum operations…

  5. Banner image for Solving the source generator 'marker attribute' problem - Part 2

    Solving the source generator 'marker attribute' problem - Part 2

    Creating a source generator - Part 8

    In this post I describe how I solved a problem I've been wrestling with around source generators: where to put the 'marker attributes'…

  6. Banner image for Solving the source generator 'marker attribute' problem - Part 1

    Solving the source generator 'marker attribute' problem - Part 1

    Creating a source generator - Part 7

    In this post I describe a problem I've been wrestling with around source generators: where to put the 'marker attributes' that drive the generator…

  7. Banner image for Saving source generator output in source control

    Saving source generator output in source control

    Creating a source generator - Part 6

    In this post I show how to emit your source generator output to disk, so you can include it in source control and code reviews.…

  8. Banner image for Finding a type declaration's namespace and type hierarchy

    Finding a type declaration's namespace and type hierarchy

    Creating a source generator - Part 5

    In this post I show a couple of handy patterns for source generators: finding a type declaration's namespace and its class hierarchy…

  9. Banner image for Customising generated code with marker attributes

    Customising generated code with marker attributes

    Creating a source generator - Part 4

    In this post I describe how to customise a source generator by reading properties from a marker attribute…

Andrew Lock | .Net Escapades
Want an email when
there's new posts?