File tree Expand file tree Collapse file tree
MattSourceGenHelpers.Examples Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,11 +17,10 @@ static string GetAllColorsString_Generator() =>
1717}
1818
1919/*
20- public class ColorsClass
21- {
20+ This will generate the following method:
21+
2222 public string GetAllColorsString()
2323 {
2424 return "Red, Green, Blue";
2525 }
26- }
2726*/
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ static int GetPiDecimal_Generator_Specialized(int decimalNumber) =>
2020}
2121
2222/*
23- public static class PiExample
24- {
23+ This will generate the following method:
24+
2525 public static int GetPiDecimal(int decimalNumber)
2626 {
2727 switch (decimalNumber)
@@ -32,5 +32,4 @@ public static int GetPiDecimal(int decimalNumber)
3232 default: return CalculatePiDecimal(decimalNumber);
3333 }
3434 }
35- }
3635*/
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ static IMethodImplementationGenerator GetPiDecimal_Generator_Specialized() =>
1717}
1818
1919/*
20- public static class PiExampleFluent
21- {
20+ This will generate the following method:
21+
2222 public static int GetPiDecimal(int decimalNumber)
2323 {
2424 switch (decimalNumber)
@@ -32,5 +32,4 @@ public static int GetPiDecimal(int decimalNumber)
3232 default: return CalculatePiDecimal(decimalNumber);
3333 }
3434 }
35- }
3635*/
You can’t perform that action at this time.
0 commit comments