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, helping companies achieve software excellence with a business focus.

As a problem solver at heart, he jumps at complicated problems and believes that as much as possible should be automated, reproducible and stored as code.