The Core of .NET

VSW04 C# Source Generators - Why and How

11/19/2025

8:00am - 9:15am

Level: Advanced

Jim Wooley

Senior Delivery Principal

Slalom Consulting

Microsoft introduced Source Generators as a way to automate repetitive tasks while increasing performance and reducing deployed application sizes. Each version of .Net since 6 has added more Source Generator capabilities to help optimize your applications. In this fast focus session, we'll explore some of the built-in source generators, along with some open-source ones that you can take advantage of in your applications today.

You will learn:

  • Understand how to use existing source generators to reduce repetitive processes
  • How replacing reflection based runtime code with comple-time code generation can improve your application performance and reduce application size.
  • Discover how to build your own source generator for your specific use cases.