Summary
After reading this chapter, you should understand source generators, how they are defined, and what can or can’t be generated. You should also know how they can help you and how to use them in your projects to make the development process faster and avoid code repetition.
We also covered the topic of partial classes and methods and how they correspond with source generators.
By now, you should be able to write a custom source generator to not only automate creating the service classes for the models but also to define the receivers to limit the code processed by the generator itself.
In the next chapter, we will take a closer look at some tips and best practices in C# and gRPC.