C# Source Generators


Topic | v1 | created by jjones |
Description

A Source Generator is a piece of code that runs during compilation and can inspect your program to produce additional files that are compiled together with the rest of your code.


Relations

subtopic of C#

C# (pronounced see sharp, like the musical note C♯, but written with the number sign) is a general-pu...


Edit details Edit relations Attach new author Attach new topic Attach new resource
Resources

has official Introducing C# Source Generators

9.0 rating 8.0 level 10.0 clarity 7.0 background – 1 rating

We’re pleased to introduce the first preview of Source Generators, a new C# compiler feature that let...

has official New C# Source Generator Samples

This post describes two new generators that we added to the samples project in the Roslyn SDK github...

cons given in The pain points of C# source generators

I've recently completed my first foray into writing a C# source generator for Schema.NET. There is a...