Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 41 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# RSCG - 256 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
# RSCG - 257 Examples of Roslyn Source Code Generators / 16 created by Microsoft /

The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 256 Roslyn Source Code Generator (RSCG) examples. The system transforms individual RSCG projects into structured documentation with code examples and cross-referenced content with a searchable website and code example exports.
The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 257 Roslyn Source Code Generator (RSCG) examples. The system transforms individual RSCG projects into structured documentation with code examples and cross-referenced content with a searchable website and code example exports.

This system serves as both a learning resource for .NET developers interested in source generators and an automated pipeline for maintaining up-to-date documentation about the RSCG ecosystem

## Latest Update : 2026-02-14 => 14 February 2026
## Latest Update : 2026-02-15 => 15 February 2026

If you want to see examples with code, please click ***[List V2](https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG)***

Expand All @@ -24,8 +24,30 @@ If you want to be notified each time I add a new RSCG example , please click htt

## Content

Those are the 256 Roslyn Source Code Generators that I have tested you can see and download source code example.
Those are the 257 Roslyn Source Code Generators that I have tested you can see and download source code example.
( including 16 from Microsoft )
### 257. [Pekspro.DataAnnotationValuesExtractor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/Pekspro.DataAnnotationValuesExtractor) , in the [EnhancementClass](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementclass) category

Generated on : 2026-02-15 => 15 February 2026

<details>
<summary>Expand</summary>



Author: Pekspro

A source generator for creating constants from data annotations.

Nuget: [https://www.nuget.org/packages/Pekspro.DataAnnotationValuesExtractor/](https://www.nuget.org/packages/Pekspro.DataAnnotationValuesExtractor/)


Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/Pekspro.DataAnnotationValuesExtractor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/Pekspro.DataAnnotationValuesExtractor)

Source: [https://github.com/pekspro/DataAnnotationValuesExtractor](https://github.com/pekspro/DataAnnotationValuesExtractor)

</details>

### 256. [Sundew.DiscriminatedUnions](https://ignatandrei.github.io/RSCG_Examples/v2/docs/Sundew.DiscriminatedUnions) , in the [FunctionalProgramming](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#functionalprogramming) category

Generated on : 2026-02-14 => 14 February 2026
Expand Down Expand Up @@ -6040,69 +6062,69 @@ Why I have not tested : issue opened
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/GaoNian-NET/MapperToolkit&body=https://github.com/GaoNian-NET/MapperToolkit


30) [https://github.com/IeuanWalker/MinimalApi.Endpoints/]( https://github.com/IeuanWalker/MinimalApi.Endpoints/) , https://github.com/IeuanWalker/MinimalApi.Endpoints/
30) [https://github.com/gumbarros/EndpointHelpers]( https://github.com/gumbarros/EndpointHelpers) , https://github.com/gumbarros/EndpointHelpers

Why I have not tested : later

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/gumbarros/EndpointHelpers&body=https://github.com/gumbarros/EndpointHelpers


31) [https://github.com/IeuanWalker/MinimalApi.Endpoints/]( https://github.com/IeuanWalker/MinimalApi.Endpoints/) , https://github.com/IeuanWalker/MinimalApi.Endpoints/

Why I have not tested : later

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/IeuanWalker/MinimalApi.Endpoints/&body=https://github.com/IeuanWalker/MinimalApi.Endpoints/


31) [https://github.com/inputfalken/Dynatello]( https://github.com/inputfalken/Dynatello) , https://github.com/inputfalken/Dynatello
32) [https://github.com/inputfalken/Dynatello]( https://github.com/inputfalken/Dynatello) , https://github.com/inputfalken/Dynatello

Why I have not tested : too complicated

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/inputfalken/Dynatello&body=https://github.com/inputfalken/Dynatello


32) [https://github.com/ionite34/MinimalApiMapper]( https://github.com/ionite34/MinimalApiMapper) , https://github.com/ionite34/MinimalApiMapper
33) [https://github.com/ionite34/MinimalApiMapper]( https://github.com/ionite34/MinimalApiMapper) , https://github.com/ionite34/MinimalApiMapper

Why I have not tested : own idea where to generate files, so overwrites

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/ionite34/MinimalApiMapper&body=https://github.com/ionite34/MinimalApiMapper


33) [https://github.com/JasonBock/CslaGeneratorSerialization]( https://github.com/JasonBock/CslaGeneratorSerialization) , https://github.com/JasonBock/CslaGeneratorSerialization
34) [https://github.com/JasonBock/CslaGeneratorSerialization]( https://github.com/JasonBock/CslaGeneratorSerialization) , https://github.com/JasonBock/CslaGeneratorSerialization

Why I have not tested : too complicated

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/JasonBock/CslaGeneratorSerialization&body=https://github.com/JasonBock/CslaGeneratorSerialization


34) [https://github.com/MoslemBenDhaou/DataSurface]( https://github.com/MoslemBenDhaou/DataSurface) , https://github.com/MoslemBenDhaou/DataSurface
35) [https://github.com/MoslemBenDhaou/DataSurface]( https://github.com/MoslemBenDhaou/DataSurface) , https://github.com/MoslemBenDhaou/DataSurface

Why I have not tested : later

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/MoslemBenDhaou/DataSurface&body=https://github.com/MoslemBenDhaou/DataSurface


35) [https://github.com/mu-dawood/EasyValidate]( https://github.com/mu-dawood/EasyValidate) , https://github.com/mu-dawood/EasyValidate
36) [https://github.com/mu-dawood/EasyValidate]( https://github.com/mu-dawood/EasyValidate) , https://github.com/mu-dawood/EasyValidate

Why I have not tested : later

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/mu-dawood/EasyValidate&body=https://github.com/mu-dawood/EasyValidate


36) [https://github.com/nuskey8/Csv-CSharp]( https://github.com/nuskey8/Csv-CSharp) , https://github.com/nuskey8/Csv-CSharp
37) [https://github.com/nuskey8/Csv-CSharp]( https://github.com/nuskey8/Csv-CSharp) , https://github.com/nuskey8/Csv-CSharp

Why I have not tested : later

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/nuskey8/Csv-CSharp&body=https://github.com/nuskey8/Csv-CSharp


37) [https://github.com/OrgEleCho/EleCho.Internationalization]( https://github.com/OrgEleCho/EleCho.Internationalization) , https://github.com/OrgEleCho/EleCho.Internationalization
38) [https://github.com/OrgEleCho/EleCho.Internationalization]( https://github.com/OrgEleCho/EleCho.Internationalization) , https://github.com/OrgEleCho/EleCho.Internationalization

Why I have not tested : issue opened

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/OrgEleCho/EleCho.Internationalization&body=https://github.com/OrgEleCho/EleCho.Internationalization


38) [https://github.com/pekspro/DataAnnotationValuesExtractor]( https://github.com/pekspro/DataAnnotationValuesExtractor) , https://github.com/pekspro/DataAnnotationValuesExtractor

Why I have not tested : later

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/pekspro/DataAnnotationValuesExtractor&body=https://github.com/pekspro/DataAnnotationValuesExtractor


39) [https://github.com/pierre3/PlantUmlClassDiagramGenerator]( https://github.com/pierre3/PlantUmlClassDiagramGenerator) , https://github.com/pierre3/PlantUmlClassDiagramGenerator

Why I have not tested : later
Expand Down
12 changes: 6 additions & 6 deletions later.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Just later

## Latest Update : 2026-02-14 => 14 February 2026
## Latest Update : 2026-02-15 => 15 February 2026



Expand Down Expand Up @@ -74,31 +74,31 @@ Why I have not tested : later



12) [https://github.com/IeuanWalker/MinimalApi.Endpoints/]( https://github.com/IeuanWalker/MinimalApi.Endpoints/) , https://github.com/IeuanWalker/MinimalApi.Endpoints/
12) [https://github.com/gumbarros/EndpointHelpers]( https://github.com/gumbarros/EndpointHelpers) , https://github.com/gumbarros/EndpointHelpers

Why I have not tested : later



13) [https://github.com/MoslemBenDhaou/DataSurface]( https://github.com/MoslemBenDhaou/DataSurface) , https://github.com/MoslemBenDhaou/DataSurface
13) [https://github.com/IeuanWalker/MinimalApi.Endpoints/]( https://github.com/IeuanWalker/MinimalApi.Endpoints/) , https://github.com/IeuanWalker/MinimalApi.Endpoints/

Why I have not tested : later



14) [https://github.com/mu-dawood/EasyValidate]( https://github.com/mu-dawood/EasyValidate) , https://github.com/mu-dawood/EasyValidate
14) [https://github.com/MoslemBenDhaou/DataSurface]( https://github.com/MoslemBenDhaou/DataSurface) , https://github.com/MoslemBenDhaou/DataSurface

Why I have not tested : later



15) [https://github.com/nuskey8/Csv-CSharp]( https://github.com/nuskey8/Csv-CSharp) , https://github.com/nuskey8/Csv-CSharp
15) [https://github.com/mu-dawood/EasyValidate]( https://github.com/mu-dawood/EasyValidate) , https://github.com/mu-dawood/EasyValidate

Why I have not tested : later



16) [https://github.com/pekspro/DataAnnotationValuesExtractor]( https://github.com/pekspro/DataAnnotationValuesExtractor) , https://github.com/pekspro/DataAnnotationValuesExtractor
16) [https://github.com/nuskey8/Csv-CSharp]( https://github.com/nuskey8/Csv-CSharp) , https://github.com/nuskey8/Csv-CSharp

Why I have not tested : later

Expand Down
42 changes: 42 additions & 0 deletions v2/.tours/Pekspro.DataAnnotationValuesExtractor.tour
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

{
"$schema": "https://aka.ms/codetour-schema",
"title": "Pekspro.DataAnnotationValuesExtractor",
"steps":
[
{
"file": "rscg_examples/Pekspro.DataAnnotationValuesExtractor/src/Attr/Attr.csproj",
"description": "First, we add Nuget [Pekspro.DataAnnotationValuesExtractor](https://www.nuget.org/packages/Pekspro.DataAnnotationValuesExtractor/) in csproj ",
"pattern": "Pekspro.DataAnnotationValuesExtractor"
}

,{
"file": "rscg_examples/Pekspro.DataAnnotationValuesExtractor/src/Attr/Values.cs",
"description": "File Values.cs ",
"pattern": "this is the code"
}

,{
"file": "rscg_examples/Pekspro.DataAnnotationValuesExtractor/src/Attr/Person.cs",
"description": "File Person.cs ",
"pattern": "this is the code"
}

,{
"file": "rscg_examples/Pekspro.DataAnnotationValuesExtractor/src/Attr/Program.cs",
"description": "File Program.cs \r\n>> dotnet run --project rscg_examples/Pekspro.DataAnnotationValuesExtractor/src/Attr/Attr.csproj ",
"pattern": "this is the code"
}


,{
"file": "rscg_examples/Pekspro.DataAnnotationValuesExtractor/src/Attr/obj/GX/Pekspro.DataAnnotationValuesExtractor/Pekspro.DataAnnotationValuesExtractor.DataAnnotationValuesExtractor/Values.g.cs",
"description": "Generated File 1 from 1 : Values.g.cs ",
"line": 1
}

],

"ref": "main"

}
1 change: 1 addition & 0 deletions v2/Generator/all.csv
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,4 @@ Nr,Key,Source,Category
254,ErrorOrX, https://github.com/ANcpLua/ErrorOrX,API
255,KnockOff, https://github.com/NeatooDotNet/KnockOff,Tests
256,Sundew.DiscriminatedUnions, https://github.com/sundews/Sundew.DiscriminatedUnions,FunctionalProgramming
257,Pekspro.DataAnnotationValuesExtractor, https://github.com/pekspro/DataAnnotationValuesExtractor,EnhancementClass
6 changes: 6 additions & 0 deletions v2/RSCGExamplesData/GeneratorDataRec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1552,5 +1552,11 @@
"Category": 10,
"dtStart": "2026-02-14T00:00:00",
"show": true
},
{
"ID":"Pekspro.DataAnnotationValuesExtractor",
"Category": 5,
"dtStart": "2026-02-15T00:00:00",
"show": true
}
]
8 changes: 4 additions & 4 deletions v2/RSCGExamplesData/NoExample.json
Original file line number Diff line number Diff line change
Expand Up @@ -988,13 +988,13 @@
"why":"later"
},
{
"ID":252,
"name":"https://github.com/pekspro/DataAnnotationValuesExtractor",
"ID":253,
"name":"https://github.com/sebastienros/comptime",
"why":"later"
},
{
"ID":253,
"name":"https://github.com/sebastienros/comptime",
"ID":254,
"name":"https://github.com/gumbarros/EndpointHelpers",
"why":"later"
}

Expand Down
65 changes: 65 additions & 0 deletions v2/book/examples/Pekspro.DataAnnotationValuesExtractor.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

<h1>RSCG nr 257 : Pekspro.DataAnnotationValuesExtractor</h1>

<h2>Info</h2>
Nuget : <a href="https://www.nuget.org/packages/Pekspro.DataAnnotationValuesExtractor/" target="_blank">https://www.nuget.org/packages/Pekspro.DataAnnotationValuesExtractor/</a>

<p>You can find more details at : <a href="https://github.com/pekspro/DataAnnotationValuesExtractor" target="_blank"> https://github.com/pekspro/DataAnnotationValuesExtractor</a></p>

<p>Author :Pekspro</p>

<p>Source: <a href="https://github.com/pekspro/DataAnnotationValuesExtractor" target="_blank">https://github.com/pekspro/DataAnnotationValuesExtractor</a> </p>

<h2>About</h2>

Generating code to extract values from data annotations in C#.

<h2>
How to use
</h2>
<h3>
Add reference to the <a href="https://www.nuget.org/packages/Pekspro.DataAnnotationValuesExtractor/" target="_blank">Pekspro.DataAnnotationValuesExtractor</a> in the csproj
</h3>
<img src="images/Pekspro.DataAnnotationValuesExtractor/Attr.csproj.png" width="580" height="580" />

<h3>This was for me the <b>starting</b> code</h3>

<br />
I have <b>coded</b> the file Program.cs
<br />
<img src="images/Pekspro.DataAnnotationValuesExtractor/csFiles/Program.cs.png" width="580" height="580" />
<hr />

<br />
I have <b>coded</b> the file Person.cs
<br />
<img src="images/Pekspro.DataAnnotationValuesExtractor/csFiles/Person.cs.png" width="580" height="580" />
<hr />

<br />
I have <b>coded</b> the file Values.cs
<br />
<img src="images/Pekspro.DataAnnotationValuesExtractor/csFiles/Values.cs.png" width="580" height="580" />
<hr />
<h3>And here are the <i>generated</i> files</h3>

<br />
The file <i>generated</i> is Values.g.cs
<br />
<img src="images/Pekspro.DataAnnotationValuesExtractor/generated/Values.g.cs.png" width="580" height="580" />

<p>
You can download the code and this page as pdf from
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/Pekspro.DataAnnotationValuesExtractor'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/Pekspro.DataAnnotationValuesExtractor
</a>
</p>


<p>
You can see the whole list at
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
</a>
</p>

6 changes: 5 additions & 1 deletion v2/book/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body>
<h1>
This is the list of 256 RSCG with examples =>
This is the list of 257 RSCG with examples =>
</h1>

<table >
Expand Down Expand Up @@ -1050,6 +1050,10 @@ <h1>
<td>256</td>
<td><a href="examples/Sundew.DiscriminatedUnions.html">Sundew.DiscriminatedUnions</a></td>
</tr>
<tr>
<td>257</td>
<td><a href="examples/Pekspro.DataAnnotationValuesExtractor.html">Pekspro.DataAnnotationValuesExtractor</a></td>
</tr>
</table>


Expand Down
1 change: 1 addition & 0 deletions v2/book/pandocHTML.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ input-files:
- examples/ErrorOrX.html
- examples/KnockOff.html
- examples/Sundew.DiscriminatedUnions.html
- examples/Pekspro.DataAnnotationValuesExtractor.html

# or you may use input-file: with a single value
# defaults:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"generator":{
"name":"Pekspro.DataAnnotationValuesExtractor",
"nuget":[
"https://www.nuget.org/packages/Pekspro.DataAnnotationValuesExtractor/"
],
"link":"https://github.com/pekspro/DataAnnotationValuesExtractor",
"author":"Pekspro",
"source":"https://github.com/pekspro/DataAnnotationValuesExtractor"
},
"data":{
"goodFor":["Generating code to extract values from data annotations in C#."],
"csprojDemo":"Attr.csproj",
"csFiles":["Program.cs","Person.cs","Values.cs"],
"excludeDirectoryGenerated":[""],
"includeAdditionalFiles":[""]
},
"links":{
"blog":"",
"video":""
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A source generator for creating constants from data annotations.
Loading