.NET Source Generators: Finding Class Declarations
Source generators are a new feature of .NET 5. You may be interested in writing source generators to help remove boilerplate, improve application performance, or generally perform tasks at compile time rather than at runtime.