Raniz

Table of Contents

  1. The art of automation: An introduction to compile-time code generation in C#

Swetugg Göteborg 2024

I was at Swetugg Göteborg 2024 to talk about compile-time code generation in C#.

The art of automation: An introduction to compile-time code generation in C#

  • Mon Sep 16 2024 14:00–14:50 Pascal

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.