Рет қаралды 29,798
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?
Introducing Source Generators
devblogs.micro...
Source Generators Cookbook
github.com/dot...
New C# Source Generator samples
devblogs.micro...
Source Generator Samples
github.com/dot...
What’s new in .NET 5
docs.microsoft...
Get your questions answered on the Microsoft Q&A for .NET - aka.ms/dotnet-qa
Learn .NET with free self-guided learning from Microsoft Learn: aka.ms/learndotnet
#DotNet #Csharp