Practicing and exploring
Test your knowledge and understanding by answering some questions, getting some hands-on practice, and exploring with deeper research into the topics in this chapter.
Exercise 7.1 – Online-only material
To walk through another example of a source generator, you can complete an online-only section from my fundamentals book, found at the following link: https://github.com/markjprice/cs12dotnet8/blob/main/docs/ch07-source-generators.md.
Exercise 7.2 – Practice exercises
Source generators are a massive topic. To learn more, use the following links:
- Source Generators design specification: https://github.com/dotnet/roslyn/blob/main/docs/features/source-generators.md.
- Source Generators samples: https://github.com/dotnet/roslyn-sdk/tree/main/samples/CSharp/SourceGenerators.
- Source Generators cookbook: https://github.com/dotnet/roslyn/blob/main/docs/features/source-generators.cookbook.md.