C# Source Generators
dotnet dotnet
284K subscribers
29,452 views
0

 Published On Mar 23, 2021

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
https://devblogs.microsoft.com/dotnet...

Source Generators Cookbook
https://github.com/dotnet/roslyn/blob...

New C# Source Generator samples
https://devblogs.microsoft.com/dotnet...

Source Generator Samples
https://github.com/dotnet/roslyn-sdk/...

What’s new in .NET 5
https://docs.microsoft.com/dotnet/cor...


Get your questions answered on the Microsoft Q&A for .NET - http://aka.ms/dotnet-qa​
Learn .NET with free self-guided learning from Microsoft Learn: http://aka.ms/learndotnet

#DotNet #Csharp

show more

Share/Embed