Swetugg Stockholm 2025
I was at Swetugg Stockholm 2025 to talk about compile-time code generation in C#.
The art of automation: An introduction to compile-time code generation in C#
- Tue Feb 04 2025 14:00–14:50 Telerummet
Have you ever done repetitive, mindless implementation work where you essentially write the same code over and over again in different places? What if you could automate all that tedium away? In this live coding session I will introduce the concept of compile-time code generation in C#. I will show how to leverage attributes to trigger our code generator during compilation and generate both full and partial classes to help remove the tedium of repetitive code.