Skip to content

Commit 4bd63d7

Browse files
authored
Merge pull request #378 from ignatandrei/jos.enumeration
2 parents fbbb042 + d73983c commit 4bd63d7

25 files changed

Lines changed: 1158 additions & 70 deletions

File tree

README.md

Lines changed: 44 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# RSCG - 201 Examples of Roslyn Source Code Generators / 14 created by Microsoft /
1+
# RSCG - 202 Examples of Roslyn Source Code Generators / 14 created by Microsoft /
22

3-
## Latest Update : 2025-07-06 => 06 July 2025
3+
## Latest Update : 2025-07-20 => 20 July 2025
44

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

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

2121
## Content
2222

23-
Those are the 201 Roslyn Source Code Generators that I have tested you can see and download source code example.
23+
Those are the 202 Roslyn Source Code Generators that I have tested you can see and download source code example.
2424
( including 14 from Microsoft )
25+
### 202. [jos.enumeration](https://ignatandrei.github.io/RSCG_Examples/v2/docs/jos.enumeration) , in the [Enum](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enum) category
26+
27+
Generated on : 2025-07-20 => 20 July 2025
28+
29+
<details>
30+
<summary>Expand</summary>
31+
32+
33+
34+
Author: Josef Ottosson
35+
36+
Package Description
37+
38+
Nuget: [https://www.nuget.org/packages/jos.enumeration/](https://www.nuget.org/packages/jos.enumeration/)
39+
40+
41+
Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/jos.enumeration](https://ignatandrei.github.io/RSCG_Examples/v2/docs/jos.enumeration)
42+
43+
Source: [https://github.com/joseftw/jos.enumeration](https://github.com/joseftw/jos.enumeration)
44+
45+
</details>
46+
2547
### 201. [Strings.ResourceGenerator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/Strings.ResourceGenerator) , in the [FilesToCode](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#filestocode) category
2648

2749
Generated on : 2025-07-06 => 06 July 2025
@@ -4822,97 +4844,97 @@ Why I have not tested : later
48224844
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/JasonBock/CslaGeneratorSerialization&body=https://github.com/JasonBock/CslaGeneratorSerialization
48234845

48244846

4825-
31) [https://github.com/MeltyPlayer/Schema]( https://github.com/MeltyPlayer/Schema) , https://github.com/MeltyPlayer/Schema
4847+
31) [https://github.com/JinShil/JinShil.MixinSourceGenerator]( https://github.com/JinShil/JinShil.MixinSourceGenerator) , https://github.com/JinShil/JinShil.MixinSourceGenerator
4848+
4849+
Why I have not tested : later
4850+
4851+
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/JinShil/JinShil.MixinSourceGenerator&body=https://github.com/JinShil/JinShil.MixinSourceGenerator
4852+
4853+
4854+
32) [https://github.com/MeltyPlayer/Schema]( https://github.com/MeltyPlayer/Schema) , https://github.com/MeltyPlayer/Schema
48264855

48274856
Why I have not tested : later
48284857

48294858
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/MeltyPlayer/Schema&body=https://github.com/MeltyPlayer/Schema
48304859

48314860

4832-
32) [https://github.com/OrgEleCho/EleCho.Internationalization]( https://github.com/OrgEleCho/EleCho.Internationalization) , https://github.com/OrgEleCho/EleCho.Internationalization
4861+
33) [https://github.com/OrgEleCho/EleCho.Internationalization]( https://github.com/OrgEleCho/EleCho.Internationalization) , https://github.com/OrgEleCho/EleCho.Internationalization
48334862

48344863
Why I have not tested : issue opened
48354864

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

48384867

4839-
33) [https://github.com/ramhari-dev/PropGenAoT]( https://github.com/ramhari-dev/PropGenAoT) , https://github.com/ramhari-dev/PropGenAoT
4868+
34) [https://github.com/ramhari-dev/PropGenAoT]( https://github.com/ramhari-dev/PropGenAoT) , https://github.com/ramhari-dev/PropGenAoT
48404869

48414870
Why I have not tested : later
48424871

48434872
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/ramhari-dev/PropGenAoT&body=https://github.com/ramhari-dev/PropGenAoT
48444873

48454874

4846-
34) [https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator]( https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator) , https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator
4875+
35) [https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator]( https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator) , https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator
48474876

48484877
Why I have not tested : later
48494878

48504879
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator&body=https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator
48514880

48524881

4853-
35) [https://github.com/stbychkov/AutoLoggerMessage]( https://github.com/stbychkov/AutoLoggerMessage) , https://github.com/stbychkov/AutoLoggerMessage
4882+
36) [https://github.com/stbychkov/AutoLoggerMessage]( https://github.com/stbychkov/AutoLoggerMessage) , https://github.com/stbychkov/AutoLoggerMessage
48544883

48554884
Why I have not tested : later
48564885

48574886
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/stbychkov/AutoLoggerMessage&body=https://github.com/stbychkov/AutoLoggerMessage
48584887

48594888

4860-
36) [https://github.com/Stepami/visitor-net]( https://github.com/Stepami/visitor-net) , https://github.com/Stepami/visitor-net
4889+
37) [https://github.com/Stepami/visitor-net]( https://github.com/Stepami/visitor-net) , https://github.com/Stepami/visitor-net
48614890

48624891
Why I have not tested : later
48634892

48644893
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/Stepami/visitor-net&body=https://github.com/Stepami/visitor-net
48654894

48664895

4867-
37) [https://github.com/svee4/RequiredStaticMembers]( https://github.com/svee4/RequiredStaticMembers) , https://github.com/svee4/RequiredStaticMembers
4896+
38) [https://github.com/svee4/RequiredStaticMembers]( https://github.com/svee4/RequiredStaticMembers) , https://github.com/svee4/RequiredStaticMembers
48684897

48694898
Why I have not tested : issue opened
48704899

48714900
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/svee4/RequiredStaticMembers&body=https://github.com/svee4/RequiredStaticMembers
48724901

48734902

4874-
38) [https://github.com/SzymonHalucha/Minerals.AutoCommands]( https://github.com/SzymonHalucha/Minerals.AutoCommands) , https://github.com/SzymonHalucha/Minerals.AutoCommands
4903+
39) [https://github.com/SzymonHalucha/Minerals.AutoCommands]( https://github.com/SzymonHalucha/Minerals.AutoCommands) , https://github.com/SzymonHalucha/Minerals.AutoCommands
48754904

48764905
Why I have not tested : later
48774906

48784907
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/SzymonHalucha/Minerals.AutoCommands&body=https://github.com/SzymonHalucha/Minerals.AutoCommands
48794908

48804909

4881-
39) [https://github.com/Teleopti/Saspect]( https://github.com/Teleopti/Saspect) , https://github.com/Teleopti/Saspect
4910+
40) [https://github.com/Teleopti/Saspect]( https://github.com/Teleopti/Saspect) , https://github.com/Teleopti/Saspect
48824911

48834912
Why I have not tested : later
48844913

48854914
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/Teleopti/Saspect&body=https://github.com/Teleopti/Saspect
48864915

48874916

4888-
40) [https://github.com/TheFo2sh/AsyncFlow]( https://github.com/TheFo2sh/AsyncFlow) , https://github.com/TheFo2sh/AsyncFlow
4917+
41) [https://github.com/TheFo2sh/AsyncFlow]( https://github.com/TheFo2sh/AsyncFlow) , https://github.com/TheFo2sh/AsyncFlow
48894918

48904919
Why I have not tested : later
48914920

48924921
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/TheFo2sh/AsyncFlow&body=https://github.com/TheFo2sh/AsyncFlow
48934922

48944923

4895-
41) [https://github.com/usausa/service-registration-generator]( https://github.com/usausa/service-registration-generator) , https://github.com/usausa/service-registration-generator
4924+
42) [https://github.com/usausa/service-registration-generator]( https://github.com/usausa/service-registration-generator) , https://github.com/usausa/service-registration-generator
48964925

48974926
Why I have not tested : later
48984927

48994928
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=https://github.com/usausa/service-registration-generator&body=https://github.com/usausa/service-registration-generator
49004929

49014930

4902-
42) [Intellenum]( https://github.com/SteveDunn/Intellenum) , https://github.com/SteveDunn/Intellenum
4931+
43) [Intellenum]( https://github.com/SteveDunn/Intellenum) , https://github.com/SteveDunn/Intellenum
49034932

49044933
Why I have not tested : not understand how to use
49054934

49064935
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=Intellenum&body=https://github.com/SteveDunn/Intellenum
49074936

49084937

4909-
43) [Jos.Enumeration,]( https://github.com/joseftw/jos.enumeration) , https://github.com/joseftw/jos.enumeration
4910-
4911-
Why I have not tested : later
4912-
4913-
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=Jos.Enumeration,&body=https://github.com/joseftw/jos.enumeration
4914-
4915-
49164938
44) [laker]( https://github.com/Lakerfield/Lakerfield.Rpc) , https://github.com/Lakerfield/Lakerfield.Rpc
49174939

49184940
Why I have not tested : later

later.md

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

3-
## Latest Update : 2025-07-06 => 06 July 2025
3+
## Latest Update : 2025-07-20 => 20 July 2025
44

55

66

@@ -122,61 +122,61 @@ Why I have not tested : later
122122

123123

124124

125-
20) [https://github.com/MeltyPlayer/Schema]( https://github.com/MeltyPlayer/Schema) , https://github.com/MeltyPlayer/Schema
125+
20) [https://github.com/JinShil/JinShil.MixinSourceGenerator]( https://github.com/JinShil/JinShil.MixinSourceGenerator) , https://github.com/JinShil/JinShil.MixinSourceGenerator
126126

127127
Why I have not tested : later
128128

129129

130130

131-
21) [https://github.com/ramhari-dev/PropGenAoT]( https://github.com/ramhari-dev/PropGenAoT) , https://github.com/ramhari-dev/PropGenAoT
131+
21) [https://github.com/MeltyPlayer/Schema]( https://github.com/MeltyPlayer/Schema) , https://github.com/MeltyPlayer/Schema
132132

133133
Why I have not tested : later
134134

135135

136136

137-
22) [https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator]( https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator) , https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator
137+
22) [https://github.com/ramhari-dev/PropGenAoT]( https://github.com/ramhari-dev/PropGenAoT) , https://github.com/ramhari-dev/PropGenAoT
138138

139139
Why I have not tested : later
140140

141141

142142

143-
23) [https://github.com/stbychkov/AutoLoggerMessage]( https://github.com/stbychkov/AutoLoggerMessage) , https://github.com/stbychkov/AutoLoggerMessage
143+
23) [https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator]( https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator) , https://github.com/sonnemaf/ReflectionIT.ComparisonOperatorsGenerator
144144

145145
Why I have not tested : later
146146

147147

148148

149-
24) [https://github.com/Stepami/visitor-net]( https://github.com/Stepami/visitor-net) , https://github.com/Stepami/visitor-net
149+
24) [https://github.com/stbychkov/AutoLoggerMessage]( https://github.com/stbychkov/AutoLoggerMessage) , https://github.com/stbychkov/AutoLoggerMessage
150150

151151
Why I have not tested : later
152152

153153

154154

155-
25) [https://github.com/SzymonHalucha/Minerals.AutoCommands]( https://github.com/SzymonHalucha/Minerals.AutoCommands) , https://github.com/SzymonHalucha/Minerals.AutoCommands
155+
25) [https://github.com/Stepami/visitor-net]( https://github.com/Stepami/visitor-net) , https://github.com/Stepami/visitor-net
156156

157157
Why I have not tested : later
158158

159159

160160

161-
26) [https://github.com/Teleopti/Saspect]( https://github.com/Teleopti/Saspect) , https://github.com/Teleopti/Saspect
161+
26) [https://github.com/SzymonHalucha/Minerals.AutoCommands]( https://github.com/SzymonHalucha/Minerals.AutoCommands) , https://github.com/SzymonHalucha/Minerals.AutoCommands
162162

163163
Why I have not tested : later
164164

165165

166166

167-
27) [https://github.com/TheFo2sh/AsyncFlow]( https://github.com/TheFo2sh/AsyncFlow) , https://github.com/TheFo2sh/AsyncFlow
167+
27) [https://github.com/Teleopti/Saspect]( https://github.com/Teleopti/Saspect) , https://github.com/Teleopti/Saspect
168168

169169
Why I have not tested : later
170170

171171

172172

173-
28) [https://github.com/usausa/service-registration-generator]( https://github.com/usausa/service-registration-generator) , https://github.com/usausa/service-registration-generator
173+
28) [https://github.com/TheFo2sh/AsyncFlow]( https://github.com/TheFo2sh/AsyncFlow) , https://github.com/TheFo2sh/AsyncFlow
174174

175175
Why I have not tested : later
176176

177177

178178

179-
29) [Jos.Enumeration,]( https://github.com/joseftw/jos.enumeration) , https://github.com/joseftw/jos.enumeration
179+
29) [https://github.com/usausa/service-registration-generator]( https://github.com/usausa/service-registration-generator) , https://github.com/usausa/service-registration-generator
180180

181181
Why I have not tested : later
182182

v2/Generator/all.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,4 @@ Nr,Key,Source,Category
200200
199,SuperFluid, https://github.com/hughesjs/SuperFluid,StateMachine
201201
200,Figgle, https://github.com/drewnoakes/figgle,Console
202202
201,Strings.ResourceGenerator, https://github.com/biggik/Strings.ResourceGenerator,FilesToCode
203+
202,Jos.Enumeration, https://github.com/joseftw/jos.enumeration,Enum

v2/RSCGExamplesData/GeneratorDataRec.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,5 +1213,11 @@
12131213
"Category": 8,
12141214
"dtStart": "2025-07-06T00:00:00",
12151215
"show": true
1216+
},
1217+
{
1218+
"ID":"Jos.Enumeration",
1219+
"Category":19,
1220+
"dtStart":"2025-07-20T00:00:00",
1221+
"show":true
12161222
}
12171223
]

v2/RSCGExamplesData/NoExample.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,7 @@
564564
"name": "PolySharp https://github.com/Sergio0694/PolySharp",
565565
"why": "later"
566566
},
567-
{
568-
"ID": 117,
569-
"name": "Jos.Enumeration, https://github.com/joseftw/jos.enumeration",
570-
"why": "later"
571-
},
567+
572568
{
573569
"ID": 118,
574570
"name": "Xtz.StronglyTyped https://github.com/dev-experience/Xtz.StronglyTyped",
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
2+
<h1>RSCG nr 202 : jos.enumeration</h1>
3+
4+
<h2>Info</h2>
5+
Nuget : <a href="https://www.nuget.org/packages/jos.enumeration/" target="_blank">https://www.nuget.org/packages/jos.enumeration/</a>
6+
7+
<p>You can find more details at : <a href="https://github.com/joseftw/jos.enumeration" target="_blank"> https://github.com/joseftw/jos.enumeration</a></p>
8+
9+
<p>Author :Josef Ottosson</p>
10+
11+
<p>Source: <a href="https://github.com/joseftw/jos.enumeration" target="_blank">https://github.com/joseftw/jos.enumeration</a> </p>
12+
13+
<h2>About</h2>
14+
15+
Generating enum from static consts
16+
17+
<h2>
18+
How to use
19+
</h2>
20+
<h3>
21+
Add reference to the <a href="https://www.nuget.org/packages/jos.enumeration/" target="_blank">jos.enumeration</a> in the csproj
22+
</h3>
23+
<img src="images/jos.enumeration/EnumDemo.csproj.png" width="580" height="580" />
24+
25+
<h3>This was for me the <b>starting</b> code</h3>
26+
27+
<br />
28+
I have <b>coded</b> the file Program.cs
29+
<br />
30+
<img src="images/jos.enumeration/csFiles/Program.cs.png" width="580" height="580" />
31+
<hr />
32+
33+
<br />
34+
I have <b>coded</b> the file CarTypes.cs
35+
<br />
36+
<img src="images/jos.enumeration/csFiles/CarTypes.cs.png" width="580" height="580" />
37+
<hr />
38+
<h3>And here are the <i>generated</i> files</h3>
39+
40+
<br />
41+
The file <i>generated</i> is CarTypes.Implementation.generated.cs
42+
<br />
43+
<img src="images/jos.enumeration/generated/CarTypes.Implementation.generated.cs.png" width="580" height="580" />
44+
45+
<br />
46+
The file <i>generated</i> is Enumerations.generated.cs
47+
<br />
48+
<img src="images/jos.enumeration/generated/Enumerations.generated.cs.png" width="580" height="580" />
49+
50+
<p>
51+
You can download the code and this page as pdf from
52+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/jos.enumeration'>
53+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/jos.enumeration
54+
</a>
55+
</p>
56+
57+
58+
<p>
59+
You can see the whole list at
60+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
61+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
62+
</a>
63+
</p>
64+

v2/book/list.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818
<body>
1919
<h1>
20-
This is the list of 201 RSCG with examples =>
20+
This is the list of 202 RSCG with examples =>
2121
</h1>
2222

2323
<table >
@@ -830,6 +830,10 @@ <h1>
830830
<td>201</td>
831831
<td><a href="examples/Strings.ResourceGenerator.html">Strings.ResourceGenerator</a></td>
832832
</tr>
833+
<tr>
834+
<td>202</td>
835+
<td><a href="examples/jos.enumeration.html">jos.enumeration</a></td>
836+
</tr>
833837
</table>
834838

835839

v2/book/pandocHTML.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ input-files:
215215
- examples/SuperFluid.html
216216
- examples/Figgle.html
217217
- examples/Strings.ResourceGenerator.html
218+
- examples/jos.enumeration.html
218219

219220
# or you may use input-file: with a single value
220221
# defaults:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"generator":{
3+
"name":"jos.enumeration",
4+
"nuget":[
5+
"https://www.nuget.org/packages/jos.enumeration/"
6+
],
7+
"link":"https://github.com/joseftw/jos.enumeration",
8+
"author":"Josef Ottosson",
9+
"source":"https://github.com/joseftw/jos.enumeration"
10+
},
11+
"data":{
12+
"goodFor":["Generating enum from static consts "],
13+
"csprojDemo":"EnumDemo.csproj",
14+
"csFiles":["Program.cs","CarTypes.cs"],
15+
"excludeDirectoryGenerated":[""],
16+
"includeAdditionalFiles":[""]
17+
},
18+
"links":{
19+
"blog":"",
20+
"video":""
21+
}
22+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Package Description

0 commit comments

Comments
 (0)