Two a day keeps stagnation away
The pain points of C# source generators

The pain points of C# source generators

I’ve recently completed my first foray into writing a C# source generator for Schema.NET. There is a lot to like about source generators however there are a few things I wish I understood more before diving into it. For those that are unaware, source generators are a new feature added to C# whereby one can analyse existing source code and generate new source code all from C# itself. One area where this is of interest is serialization – being able to generate an ideal serializer at compile time prevents the need of using reflection at runtime.

Read more: https://turnerj.com/blog/the-pain-points-of-csharp-source-generators

Leave a Reply

Your email address will not be published. Required fields are marked *