© 2026 Dometrain. All rights reserved.
Master the art of writing code that writes code with source generators in C#.
Ever since Source Generators were added in C# and .NET, Microsoft has been consistently using them to improve the performance and flexibility of .NET and the BCL. Building source generators, however, is a mystery for many developers because it involves writing code that writes code. From AOT to mapping and much more, source generators can have thousands of use cases, and they are here to stay. If you want to never manually write a mapper again in your life but have the bad performance of a reflection-based mapper, learning how to use source generators will be an eye-opening experience for you. In this course, veteran developer Mel Grubb will assume you know nothing about source generators and teach you everything you need to know to start writing your own.
Great delivery and in-depth explanation of the subject
How to generate dynamic classes. I need this for a project I'm working on.
The course was very well structured and explained everything in a clear way
How to create custom source generators in .net/c#.
Everything. This course was an excellent introduction and dive into the complex world of source generators.
How to debug generators and the fact that generated code can be done from arbitrary files, and not just strictly code
I like that Mel discussed differences between different IDEs and how knowledge is dosed with refactoring to more advanced concepts
Creating and shipping generators as production ready feature