关于[Generating Code in C#]的摘要:
A new feature in .NET 5 that will be available in C# 9.0 (which is slated for release in November 2020) is called “source generators.” It provides a means to create code based on expected conditions in existing code. This feature is baked into the compiler, creating a seamless, native code generation experience. In this article, I’ll dive into source generators and demonstrate how you can use them for your own implementation needs.
原文地址: https://medium.com/rocket-mortgage-technology-blog/generating-code-in-c-1868ebbe52c5