File tree Expand file tree Collapse file tree
rscg_examples_site/static/sources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ < h1 > RSCG nr 226 : requiredenum</ h1 >
3+
4+ < h2 > Info</ h2 >
5+ Nuget : < a href ="https://www.nuget.org/packages/requiredenum/ " target ="_blank "> https://www.nuget.org/packages/requiredenum/</ a >
6+
7+ < p > You can find more details at : < a href ="https://github.com/emptycoder/RequiredEnum " target ="_blank "> https://github.com/emptycoder/RequiredEnum</ a > </ p >
8+
9+ < p > Author :Yaroslav</ p >
10+
11+ < p > Source: < a href ="https://github.com/emptycoder/RequiredEnum " target ="_blank "> https://github.com/emptycoder/RequiredEnum</ a > </ p >
12+
13+ < h2 > About</ h2 >
14+
15+ Raise an error at compile time if not have switch handle case all enums values
16+
17+ < h2 >
18+ How to use
19+ </ h2 >
20+ < h3 >
21+ Add reference to the < a href ="https://www.nuget.org/packages/requiredenum/ " target ="_blank "> requiredenum</ a > in the csproj
22+ </ h3 >
23+ < img src ="images/requiredenum/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/requiredenum/csFiles/Program.cs.png " width ="580 " height ="580 " />
31+ < hr />
32+
33+ < br />
34+ I have < b > coded</ b > the file RequiredCarTypes.cs
35+ < br />
36+ < img src ="images/requiredenum/csFiles/RequiredCarTypes.cs.png " width ="580 " height ="580 " />
37+ < hr />
38+ < h3 > And here are the < i > generated</ i > files</ h3 >
39+
40+ < p >
41+ You can download the code and this page as pdf from
42+ < a target ="_blank " href ='https://ignatandrei.github.io/RSCG_Examples/v2/docs/requiredenum '>
43+ https://ignatandrei.github.io/RSCG_Examples/v2/docs/requiredenum
44+ </ a >
45+ </ p >
46+
47+
48+ < p >
49+ You can see the whole list at
50+ < a target ="_blank " href ='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG '>
51+ https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
52+ </ a >
53+ </ p >
54+
Original file line number Diff line number Diff line change 1717</ head >
1818< body >
1919 < h1 >
20- This is the list of 225 RSCG with examples =>
20+ This is the list of 226 RSCG with examples =>
2121 </ h1 >
2222
2323< table >
@@ -926,6 +926,10 @@ <h1>
926926 < td > 225</ td >
927927 < td > < a href ="examples/Schema.html "> Schema</ a > </ td >
928928 </ tr >
929+ < tr >
930+ < td > 226</ td >
931+ < td > < a href ="examples/requiredenum.html "> requiredenum</ a > </ td >
932+ </ tr >
929933</ table >
930934
931935
Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ input-files:
239239- examples/JinShil.MixinSourceGenerator.html
240240- examples/FactoryGenerator.Abstractions.html
241241- examples/Schema.html
242+ - examples/requiredenum.html
242243
243244# or you may use input-file: with a single value
244245# defaults:
You can’t perform that action at this time.
0 commit comments