Skip to content

Commit 89b89d2

Browse files
committed
Improved examples
1 parent 1909eb9 commit 89b89d2

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

MattSourceGenHelpers.Examples/GenerateSentenceFromEnumClass.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
*/

MattSourceGenHelpers.Examples/PiExample.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
*/

MattSourceGenHelpers.Examples/PiExampleFluent.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)