~/talk

C# Code Generators: Writing Code That Writes Code

TalkinRussianat DotFest 2020 · 2020-10-12..10-18· [c-sharp, compilers-and-language-design]
slides:none on file

The talk explains C# source generators introduced with C# 9 and .NET 5 (Roslyn), contrasting them with older tools like PostSharp, Fody, and CodeSmith. It covers how generators run at compile time with access to compiler internal data structures, shows examples of writing C# generators, and discusses scenarios and benefits (e.g., replacing slow reflection) so listeners can build their own generators.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54What are code generators
  3. 4:43How code generators work
  4. 9:48Creating and using generators
  5. 26:18Generator demo
  6. 32:00Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.