We’re pleased to introduce the first preview of Source Generators, a new C# compiler feature that lets C# developers inspect user code and generate new C# source files that can be added to a compilation. This is done via a new kind of component that we’re calling a Source Generator. To get started with Source Generators, you’ll need to install the latest .NET 5 preview and the latest Visual Studio
![Introducing C# Source Generators - .NET Blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/9ca855f0c347610c452f211ed910795a6b6e5830/height=288;version=1;width=512/https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fwp-content%2Fuploads%2Fsites%2F10%2F2020%2F04%2FPicture1.png)