Part 1
"Source generators were introduced in .NET 6 as a feature that allows generating additional code at compile time, based on your code. I've written about source generators many times on my blog, as they provide a solution to many interesting problems. Fundamentally, they allow you to automatically generate code that would be difficult or laborious to write manually."