Daniel Raniz Raneland

Sourceror @ factor10

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

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.

Daniel Raniz Raneland

Raniz is a programmer, architect, speaker and coach at factor10. He is a problem solver who keeps track of the bigger picture. He is prestigeless, likes to get into new domains, and loves sharing knowledge and ideas. Raniz has worked with system- and software architecture at several companies since 2010 and has been with factor10 since 2021. When not working he's into beer brewing, sourdough bread, 3D printing and triathlons.