The Core of .NET

W06 Using Source Generators for Fun (and Maybe Profit)

03/02/2022

9:30am - 10:45am

Level: Intermediate to Advanced

Jason Bock

MVP (C#)

Staff Software Engineer

Rocket Mortgage

One of the features added in C# 9 is called "source generators", enabling a developer to create new code at compile time. This can be used for a myriad of cases, such as optimization, automating repetitive code, and dynamic API creation. In this session, I'll cover how source generators work and demonstrate a number of implementations.

You will learn:

  • How source generators work
  • An understanding of how source generators can improve your developer experience
  • Where source generators "fit" well to improve performance and reduce boilerplate code