In this video we talk about the new .NET 5 feature source generators. We go over an example of where they could be used - compile time serializer generation. They're a decently complex topic that was hard to fit into one video, so please let me know what you think!
The git repo for this project can be found at https://github.com/aqez/SourceGenerators
0:00 Intro
0:08 Overview
5:55 Reflection Based Serializer
8:33 What we want to generate
11:54 Roslyn API
14:55 Creating the project
16:16 Generating an Attribute
23:05 Inspecting the AST
33:50 Compiling generated code
47:02 Closing Thoughts