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
32 changes: 27 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# RSCG - 251 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
# RSCG - 252 Examples of Roslyn Source Code Generators / 16 created by Microsoft /

The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 251 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 252 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 : 2025-12-18 => 18 December 2025
## Latest Update : 2026-01-28 => 28 January 2026

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

If you want just those from Microsoft, please click ***[Microsoft](https://ignatandrei.github.io/RSCG_Examples/v2/docs/Authors/Microsoft)***

If you want to see by category, please click ***[category](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples)***
or click any category below
[actor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#actor) -[ai](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#ai) -[aop](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#aop) -[api](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#api) -[async](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#async) -[bitwise](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#bitwise) -[blazor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#blazor) -[bool](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#bool) -[builder](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#builder) -[clone](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#clone) -[codetostring](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#codetostring) -[commandline](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#commandline) -[console](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#console) -[constructor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#constructor) -[database](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#database) -[decorator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#decorator) -[dependencyinjection](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#dependencyinjection) -[disposer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#disposer) -[enhancementclass](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementclass) -[enhancementproject](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementproject) -[enum](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enum) -[equals](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#equals) -[filestocode](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#filestocode) -[functionalprogramming](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#functionalprogramming) -[hangfire](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#hangfire) -[interface](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#interface) -[linq](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#linq) -[mapper](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mapper) -[mcp](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mcp) -[mediator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mediator) -[mixin](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mixin) -[mvc](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mvc) -[mvvm](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mvvm) -[optimizer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#optimizer) -[primitiveobsession](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#primitiveobsession) -[profiler](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#profiler) -[rx](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#rx) -[serializer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#serializer) -[signalr](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#signalr) -[statemachine](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#statemachine) -[templating](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#templating) -[tests](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#tests) -[validator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#validator) -[winapi](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#winapi) -
[actor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#actor) -[ai](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#ai) -[aop](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#aop) -[api](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#api) -[async](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#async) -[bitwise](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#bitwise) -[blazor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#blazor) -[bool](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#bool) -[builder](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#builder) -[clone](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#clone) -[codetostring](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#codetostring) -[commandline](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#commandline) -[console](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#console) -[constructor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#constructor) -[database](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#database) -[decorator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#decorator) -[dependencyinjection](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#dependencyinjection) -[disposer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#disposer) -[enhancementclass](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementclass) -[enhancementproject](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementproject) -[enum](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enum) -[equals](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#equals) -[filestocode](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#filestocode) -[functionalprogramming](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#functionalprogramming) -[hangfire](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#hangfire) -[idempotency](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#idempotency) -[interface](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#interface) -[linq](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#linq) -[mapper](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mapper) -[mcp](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mcp) -[mediator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mediator) -[mixin](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mixin) -[mvc](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mvc) -[mvvm](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mvvm) -[optimizer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#optimizer) -[primitiveobsession](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#primitiveobsession) -[profiler](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#profiler) -[rx](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#rx) -[serializer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#serializer) -[signalr](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#signalr) -[statemachine](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#statemachine) -[templating](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#templating) -[tests](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#tests) -[validator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#validator) -[winapi](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#winapi) -


## If you have a Roslyn Source Code Generator, please create an issue.
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 251 Roslyn Source Code Generators that I have tested you can see and download source code example.
Those are the 252 Roslyn Source Code Generators that I have tested you can see and download source code example.
( including 16 from Microsoft )
### 252. [RSCG_idempotency](https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_idempotency) , in the [Idempotency](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#idempotency) category

Generated on : 2026-01-28 => 28 January 2026

<details>
<summary>Expand</summary>



Author: Ignat Andrei

Automatic generating Idempotency for function parameters

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


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

Source: [https://github.com/ignatandrei/RSCG_idempotency](https://github.com/ignatandrei/RSCG_idempotency)

</details>

### 251. [OrderedBuildersGenerator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/OrderedBuildersGenerator) , in the [Builder](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#builder) category

Generated on : 2025-12-18 => 18 December 2025
Expand Down
2 changes: 1 addition & 1 deletion later.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Just later

## Latest Update : 2025-12-18 => 18 December 2025
## Latest Update : 2026-01-28 => 28 January 2026



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

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

,{
"file": "rscg_examples/RSCG_idempotency/src/IdempotencyDemo/Purchase.cs",
"description": "File Purchase.cs ",
"pattern": "this is the code"
}

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


,{
"file": "rscg_examples/RSCG_idempotency/src/IdempotencyDemo/obj/GX/RSCG_idempotency/RSCG_idempotency.IPGen/TimeProvider.gen.cs",
"description": "Generated File 4 from 4 : TimeProvider.gen.cs ",
"line": 1
}

,{
"file": "rscg_examples/RSCG_idempotency/src/IdempotencyDemo/obj/GX/RSCG_idempotency/RSCG_idempotency.IPGen/Microsoft.CodeAnalysis.EmbeddedAttribute.cs",
"description": "Generated File 3 from 4 : Microsoft.CodeAnalysis.EmbeddedAttribute.cs ",
"line": 1
}

,{
"file": "rscg_examples/RSCG_idempotency/src/IdempotencyDemo/obj/GX/RSCG_idempotency/RSCG_idempotency.IPGen/IdempotentAttribute.gen.cs",
"description": "Generated File 2 from 4 : IdempotentAttribute.gen.cs ",
"line": 1
}

,{
"file": "rscg_examples/RSCG_idempotency/src/IdempotencyDemo/obj/GX/RSCG_idempotency/RSCG_idempotency.IPGen/IdempotencyDemo_Purchase_PurchaseNow_UniqueId.cs",
"description": "Generated File 1 from 4 : IdempotencyDemo_Purchase_PurchaseNow_UniqueId.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 @@ -250,3 +250,4 @@ Nr,Key,Source,Category
249,Silhouette, https://github.com/kevingosse/Silhouette,Profiler
250,Facet.Search, https://github.com/Tim-Maes/Facet.Search,Database
251,OrderedBuildersGenerator, https://github.com/Georgiy-Petrov/OrderedBuildersGenerator,Builder
252,RSCG_idempotency, https://github.com/ignatandrei/RSCG_idempotency,Idempotency
1 change: 1 addition & 0 deletions v2/GeneratorData/Category.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ public enum Category
MCP= 42,
Bool=43,
Profiler=44,
Idempotency=45
}

6 changes: 6 additions & 0 deletions v2/RSCGExamplesData/GeneratorDataRec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1521,5 +1521,11 @@
"Category": 4,
"dtStart": "2025-12-18T00:00:00",
"show": true
},
{
"ID":"RSCG_idempotency",
"Category":45,
"dtStart":"2026-01-28T00:00:00",
"show":true
}
]
74 changes: 74 additions & 0 deletions v2/book/examples/RSCG_idempotency.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@

<h1>RSCG nr 252 : RSCG_idempotency</h1>

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

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

<p>Author :Ignat Andrei</p>

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

<h2>About</h2>

Generating code for idempotency

<h2>
How to use
</h2>
<h3>
Add reference to the <a href="https://www.nuget.org/packages/RSCG_idempotency/" target="_blank">RSCG_idempotency</a> in the csproj
</h3>
<img src="images/RSCG_idempotency/IdempotencyDemo.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/RSCG_idempotency/csFiles/Program.cs.png" width="580" height="580" />
<hr />

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

<br />
The file <i>generated</i> is IdempotencyDemo_Purchase_PurchaseNow_UniqueId.cs
<br />
<img src="images/RSCG_idempotency/generated/IdempotencyDemo_Purchase_PurchaseNow_UniqueId.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is IdempotentAttribute.gen.cs
<br />
<img src="images/RSCG_idempotency/generated/IdempotentAttribute.gen.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Microsoft.CodeAnalysis.EmbeddedAttribute.cs
<br />
<img src="images/RSCG_idempotency/generated/Microsoft.CodeAnalysis.EmbeddedAttribute.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is TimeProvider.gen.cs
<br />
<img src="images/RSCG_idempotency/generated/TimeProvider.gen.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/RSCG_idempotency'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_idempotency
</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 251 RSCG with examples =>
This is the list of 252 RSCG with examples =>
</h1>

<table >
Expand Down Expand Up @@ -1030,6 +1030,10 @@ <h1>
<td>251</td>
<td><a href="examples/OrderedBuildersGenerator.html">OrderedBuildersGenerator</a></td>
</tr>
<tr>
<td>252</td>
<td><a href="examples/RSCG_idempotency.html">RSCG_idempotency</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 @@ -265,6 +265,7 @@ input-files:
- examples/Silhouette.html
- examples/Facet.Search.html
- examples/OrderedBuildersGenerator.html
- examples/RSCG_idempotency.html

# or you may use input-file: with a single value
# defaults:
Expand Down
22 changes: 22 additions & 0 deletions v2/rscg_examples/RSCG_idempotency/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"generator":{
"name":"RSCG_idempotency",
"nuget":[
"https://www.nuget.org/packages/RSCG_idempotency/"
],
"link":"https://github.com/ignatandrei/RSCG_idempotency",
"author":"Ignat Andrei",
"source":"https://github.com/ignatandrei/RSCG_idempotency"
},
"data":{
"goodFor":["Generating code for idempotency"],
"csprojDemo":"IdempotencyDemo.csproj",
"csFiles":["Program.cs","Purchase.cs"],
"excludeDirectoryGenerated":[""],
"includeAdditionalFiles":[""]
},
"links":{
"blog":"",
"video":""
}
}
1 change: 1 addition & 0 deletions v2/rscg_examples/RSCG_idempotency/nuget.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Automatic generating Idempotency for function parameters
Loading