LANGUAGE

C# source generator

Contributes additional source to a compilation.

Formal Syntax & Structure

csharp syntaxcsharp
Build-time generated C# source

Working Example

Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.partial class ItemFormatter { }
C# & .NET Reference