C# Source Generators | On .NET




Channel 9 show

Summary: The source generators feature was adding in .NET 5. They allow you to do interesting things like generate additional source files that will get added to a compilation. In this video, Kathleen chats with Jared Parsons to find out what source generators are capable of. [01:15] - What are Source Generators?[05:24] - Demo: Real-time code generator for classes[10:54] - Demo: Generating INotifyPropertyChanged[13:16] - How to learn about building generators? Useful Links Introducing Source GeneratorsSource Generators CookbookNew C# Source Generator samplesSource Generator SamplesWhat’s new in .NET 5