Skip to content

Commit 5b5d65f

Browse files
committed
sec
1 parent 566bd20 commit 5b5d65f

18 files changed

Lines changed: 934 additions & 15 deletions

File tree

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# RSCG - 262 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
1+
# RSCG - 263 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
22

3-
The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 262 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.
3+
The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 263 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.
44

55
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
66

7-
## Latest Update : 2026-04-04 => 04 April 2026
7+
## Latest Update : 2026-04-05 => 05 April 2026
88

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

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

2525
## Content
2626

27-
Those are the 262 Roslyn Source Code Generators that I have tested you can see and download source code example.
27+
Those are the 263 Roslyn Source Code Generators that I have tested you can see and download source code example.
2828
( including 16 from Microsoft )
29+
### 263. [TaggedEnum](https://ignatandrei.github.io/RSCG_Examples/v2/docs/TaggedEnum) , in the [Enum](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enum) category
30+
31+
Generated on : 2026-04-05 => 05 April 2026
32+
33+
<details>
34+
<summary>Expand</summary>
35+
36+
37+
38+
Author: Alor'idal
39+
40+
Enum like tagged union
41+
42+
Nuget: [https://www.nuget.org/packages/TaggedEnum/](https://www.nuget.org/packages/TaggedEnum/)
43+
44+
45+
Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/TaggedEnum](https://ignatandrei.github.io/RSCG_Examples/v2/docs/TaggedEnum)
46+
47+
Source: [https://github.com/al0rid4l/SixTatami](https://github.com/al0rid4l/SixTatami)
48+
49+
</details>
50+
2951
### 262. [SvgIconGenerator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/SvgIconGenerator) , in the [FilesToCode](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#filestocode) category
3052

3153
Generated on : 2026-04-04 => 04 April 2026

later.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Just later
22

3-
## Latest Update : 2026-04-04 => 04 April 2026
3+
## Latest Update : 2026-04-05 => 05 April 2026
44

55

66

v2/Generator/all.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,3 +261,4 @@ Nr,Key,Source,Category
261261
260,AssemblyMetadata, https://github.com/BenjaminAbt/AssemblyMetadata,EnhancementProject
262262
261,NLog.Extensions.ThisClass, https://github.com/trympet/ThisClass,EnhancementClass
263263
262,SvgIconGenerator, https://github.com/helluvamatt/SvgIconGenerator,FilesToCode
264+
263,TaggedEnum, https://github.com/al0rid4l/SixTatami,Enum

v2/rscg_examples/TaggedEnum/description.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"Also retrieved enum by value or name.",
1414
"And an extension method JSON serializer for enum."
1515
],
16-
"csprojDemo":"TaggedEnumDemo.csproj",
17-
"csFiles":["Program.cs"],
16+
"csprojDemo":"EnumDemo.csproj",
17+
"csFiles":["Program.cs","CarTypes.cs"],
1818
"excludeDirectoryGenerated":[""],
1919
"includeAdditionalFiles":[""]
2020
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Enum like tagged union
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# cs-lib-template
2+
Al0rid4l's dog food.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
{
3+
"$schema": "https://aka.ms/codetour-schema",
4+
"title": "TaggedEnum",
5+
"steps":
6+
[
7+
{
8+
"file": "EnumDemo/EnumDemo.csproj",
9+
"description": "First, we add Nuget [TaggedEnum](https://www.nuget.org/packages/TaggedEnum/) in csproj ",
10+
"pattern": "TaggedEnum"
11+
}
12+
13+
,{
14+
"file": "EnumDemo/CarTypes.cs",
15+
"description": "File CarTypes.cs ",
16+
"pattern": "this is the code"
17+
}
18+
19+
,{
20+
"file": "EnumDemo/Program.cs",
21+
"description": "File Program.cs \r\n>> dotnet run --project EnumDemo/EnumDemo.csproj ",
22+
"pattern": "this is the code"
23+
}
24+
25+
26+
,{
27+
"file": "EnumDemo/obj/GX/TaggedEnum/TaggedEnum.TaggedEnumSourceGenerator/TaggedEnumAttribute.g.cs",
28+
"description": "Generated File 2 from 2 : TaggedEnumAttribute.g.cs ",
29+
"line": 1
30+
}
31+
32+
,{
33+
"file": "EnumDemo/obj/GX/TaggedEnum/TaggedEnum.TaggedEnumSourceGenerator/EnumDemoEnumDemo.CarTypesTaggedEnum.g.cs",
34+
"description": "Generated File 1 from 2 : EnumDemoEnumDemo.CarTypesTaggedEnum.g.cs ",
35+
"line": 1
36+
}
37+
38+
],
39+
40+
"ref": "main"
41+
42+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"scriptName": "TaggedEnum",
3+
"steps":
4+
[
5+
{"typeStep":"exec","arg":"clipchamp.exe launch"},
6+
{"typeStep":"text","arg": "Welcome to Roslyn Examples"},
7+
{"typeStep":"text","arg":"If you want to see more examples , see List Of RSCG"},
8+
{"typeStep":"browser","arg":"https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG"},
9+
{"typeStep":"text","arg": "My name is Andrei Ignat and I am deeply fond of Roslyn Source Code Generator. "},
10+
11+
{"typeStep":"text","arg": "Today I will present TaggedEnum . Generate dictionary from enumAlso retrieved enum by value or name.And an extension method JSON serializer for enum. ."},
12+
{"typeStep":"browser","arg":"https://www.nuget.org/packages/TaggedEnum/"},
13+
{"typeStep":"text","arg": "The whole example is here"},
14+
{"typeStep":"browser","arg":"https://ignatandrei.github.io/RSCG_Examples/v2/docs/TaggedEnum"},
15+
{"typeStep":"text","arg": "You can download the code from here"},
16+
{"typeStep":"browser","arg":"https://ignatandrei.github.io/RSCG_Examples/v2/docs/TaggedEnum#download-example-net--c-"},
17+
{"typeStep":"text","arg":"Here is the code downloaded "},
18+
{"typeStep":"exec","arg":"explorer.exe /select,D:\\gth\\RSCG_Examples\\v2\\rscg_examples\\TaggedEnum\\src\\EnumDemo.sln"},
19+
{"typeStep":"text","arg": "So , let's start the project with Visual Studio Code "},
20+
{"typeStep":"stepvscode","arg": "-n D:\\gth\\RSCG_Examples\\v2\\rscg_examples\\TaggedEnum\\src"},
21+
22+
{"typeStep":"text","arg": "To use it ,you will put the Nuget TaggedEnum into the csproj "},
23+
24+
{"typeStep":"stepvscode","arg": "-r -g D:\\gth\\RSCG_Examples\\v2\\rscg_examples\\TaggedEnum\\src\\EnumDemo\\EnumDemo.csproj"},
25+
26+
{"typeStep":"text","arg": "And now I will show you an example of using TaggedEnum"},
27+
28+
{"typeStep":"hide","arg": "now execute the tour in VSCode"},
29+
{"typeStep":"tour", "arg": "src/.tours/"},
30+
{"typeStep":"text","arg":" And I will execute the project"},
31+
{"typeStep":"showproj", "arg":"EnumDemo.csproj"},
32+
{"typeStep":"text","arg":" This concludes the project"},
33+
{"typeStep":"waitseconds","arg":"30"},
34+
{"typeStep":"text","arg": "Remember, you can download the code from here"},
35+
{"typeStep":"browser","arg":"https://ignatandrei.github.io/RSCG_Examples/v2/docs/TaggedEnum#download-example-net--c-",
36+
SpeakTest=" "},
37+
{"typeStep":"waitseconds","arg":"30"},
38+
]
39+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Author : Alor'idal
2+
3+
Number RSCG: 1
4+
5+
6+
1 [TaggedEnum](/docs/TaggedEnum) [![Nuget](https://img.shields.io/nuget/dt/TaggedEnum?label=TaggedEnum)](https://www.nuget.org/packages/TaggedEnum/) ![GitHub Repo stars](https://img.shields.io/github/stars/al0rid4l/SixTatami?style=social) 2026-04-05
7+

v2/rscg_examples_site/docs/Categories/Enum.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1>Enum</h1>
22

3-
Number RSCG: 12
3+
Number RSCG: 13
44

55
1 [CredFetoEnum](/docs/CredFetoEnum) [![Nuget](https://img.shields.io/nuget/dt/Credfeto.Enumeration.Source.Generation?label=Credfeto.Enumeration.Source.Generation)](https://www.nuget.org/packages/Credfeto.Enumeration.Source.Generation/) ![GitHub Repo stars](https://img.shields.io/github/stars/credfeto/credfeto-enum-source-generation?style=social) 2023-10-12
66

@@ -25,4 +25,6 @@ Number RSCG: 12
2525
11 [RapidEnum](/docs/RapidEnum) [![Nuget](https://img.shields.io/nuget/dt/RapidEnum?label=RapidEnum)](https://www.nuget.org/packages/RapidEnum/) ![GitHub Repo stars](https://img.shields.io/github/stars/hanachiru/RapidEnum?style=social) 2025-10-04
2626

2727
12 [requiredenum](/docs/requiredenum) [![Nuget](https://img.shields.io/nuget/dt/requiredenum?label=requiredenum)](https://www.nuget.org/packages/requiredenum/) ![GitHub Repo stars](https://img.shields.io/github/stars/emptycoder/RequiredEnum?style=social) 2025-08-14
28+
29+
13 [TaggedEnum](/docs/TaggedEnum) [![Nuget](https://img.shields.io/nuget/dt/TaggedEnum?label=TaggedEnum)](https://www.nuget.org/packages/TaggedEnum/) ![GitHub Repo stars](https://img.shields.io/github/stars/al0rid4l/SixTatami?style=social) 2026-04-05
2830

0 commit comments

Comments
 (0)