RSCG–part 1

Roslyn Source Code Generators are a easy way to generate automatically code that can be injected at compile time. This code can be generated on some template file or based on existing code or both . It works by intercepting at compile time the result of compilation of the existing source code and adding to this compilation other files. It cannot modify the code, just add to it.

You can see a deep tutorial about how to do it at https://khalidabuhakmeh.com/dotnet-5-source-generators-jump-start . Also, you can read more at https://devblogs.microsoft.com/dotnet/introducing-c-source-generators/ and at https://github.com/dotnet/roslyn/blob/master/docs/features/source-generators.cookbook.md .

There are a fair amount of them  – and I intend to detail their use .  That means

1. I will show how they can be useful for you

2. I will show examples with source code .

3. Make a video with this.

All RSCG

NrBlog Post
1RSCG–part 1
2RSCG- AppVersion–part 2
3http://msprogrammer.serviciipeweb.ro/2021/02/17/rsgc-enum-part-3/
4RSGC-JSON to Class- part 4
5RSGC-Constructor – Deconstructor – part 5
6RSGC – DTO Mapper – part 6
7RSGC – Skinny Controllers- part 7
8RSGC-Builder Design Pattern – part 8
9RSGC- MetadataFromObject – part 9
10RSGC- Dynamic Mock – part 10
11RSCG- Method Decorator – part 11
12RSCG – Curry – Partial function – part 12
13RSCG- part 13 – IFormattable
14RSCG- part 14 – DP_Decorator
15RSCG- part 15 – Expression Generator
16RSCG- part 16 – Many Others
17RSCG- the book
18RSCG–Template Rendering- part 17
19CI Version
20HttpClientGenerator
21Query from database
22AutoRegister
23TinyTypes
24Static2Interface
25AppSettings
26Properties
27
Roslyn Source Code Generators