-
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"!
-
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 previous editions of ASP.NET Core in Action!
-
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…
-
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'…
-
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…
-
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.…
-
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…
-
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…