Skip to content

Commit f299fc4

Browse files
committed
After stream
1 parent 7e26762 commit f299fc4

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

sessions/Season-01/1116-CSharpEleven/SampleCode/4_Static.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ public partial class PokerPlayingCard : IPlayingCard<PokerPlayingCard>
4545

4646
public static PokerPlayingCard operator ++(PokerPlayingCard value)
4747
{
48-
return All[(value._value + 1) % All.Length];
48+
return All[(value.Rank + 1) % All.Length];
4949
}
5050

5151
public static PokerPlayingCard operator --(PokerPlayingCard value)
5252
{
53-
return All[(value._value - 1) % All.Length];
53+
return All[(value.Rank - 1) % All.Length];
5454
}
5555

5656
public static bool operator ==(PokerPlayingCard left, PokerPlayingCard right)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.33312.197
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CSharpEleven", "CSharpEleven.csproj", "{F087B28A-1F8A-4BD2-8A36-7BA5D71DEBA4}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{F087B28A-1F8A-4BD2-8A36-7BA5D71DEBA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{F087B28A-1F8A-4BD2-8A36-7BA5D71DEBA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{F087B28A-1F8A-4BD2-8A36-7BA5D71DEBA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{F087B28A-1F8A-4BD2-8A36-7BA5D71DEBA4}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {66DE8E03-C78E-46C6-9ACE-B06B8A05DCC0}
24+
EndGlobalSection
25+
EndGlobal

0 commit comments

Comments
 (0)